Fix theme importing #861

note to self: use node.nextElementSibling when assuming the needed
node is an element.
This commit is contained in:
Zixaphir 2015-01-16 10:02:21 -07:00
parent 2858f08181
commit 37e43ad19d
5 changed files with 12 additions and 12 deletions

View File

@ -17535,7 +17535,7 @@
container = $("#mascotcontent", dialog);
fileRice = function(e) {
if (e.shiftKey) {
return this.nextSibling.click();
return this.nextElementSibling.click();
}
};
updateMascot = function() {
@ -18154,7 +18154,7 @@
});
$.on(input, 'click', function(evt) {
if (evt.shiftKey) {
return this.nextSibling.click();
return this.nextElementSibling.click();
}
});
$.on(fileInput, 'change', function(evt) {
@ -19648,7 +19648,7 @@
return Settings.close();
});
$.on($("#import", div), 'click', function() {
return this.nextSibling.click();
return this.nextElementSibling.click();
});
$.on($("#importbutton", div), 'change', ThemeTools.importtheme);
$.on($('#tUndelete', div), 'click', function() {
@ -19815,7 +19815,7 @@
return Settings.close();
});
$.on($("#importMascot", batchmascots), 'click', function() {
return this.nextSibling.click();
return this.nextElementSibling.click();
});
$.on($("#importMascotButton", batchmascots), 'change', MascotTools.importMascot);
$.on($('#undelete', batchmascots), 'click', function() {

View File

@ -17557,7 +17557,7 @@
container = $("#mascotcontent", dialog);
fileRice = function(e) {
if (e.shiftKey) {
return this.nextSibling.click();
return this.nextElementSibling.click();
}
};
updateMascot = function() {
@ -18182,7 +18182,7 @@
});
$.on(input, 'click', function(evt) {
if (evt.shiftKey) {
return this.nextSibling.click();
return this.nextElementSibling.click();
}
});
$.on(fileInput, 'change', function(evt) {
@ -19679,7 +19679,7 @@
return Settings.close();
});
$.on($("#import", div), 'click', function() {
return this.nextSibling.click();
return this.nextElementSibling.click();
});
$.on($("#importbutton", div), 'change', ThemeTools.importtheme);
$.on($('#tUndelete', div), 'click', function() {
@ -19846,7 +19846,7 @@
return Settings.close();
});
$.on($("#importMascot", batchmascots), 'click', function() {
return this.nextSibling.click();
return this.nextElementSibling.click();
});
$.on($("#importMascotButton", batchmascots), 'change', MascotTools.importMascot);
$.on($('#undelete', batchmascots), 'click', function() {

View File

@ -570,7 +570,7 @@ Settings =
Settings.close()
$.on $("#import", div), 'click', ->
@nextSibling.click()
@nextElementSibling.click()
$.on $("#importbutton", div), 'change', ThemeTools.importtheme
@ -726,7 +726,7 @@ Settings =
Settings.close()
$.on $("#importMascot", batchmascots), 'click', ->
@nextSibling.click()
@nextElementSibling.click()
$.on $("#importMascotButton", batchmascots), 'change', MascotTools.importMascot

View File

@ -153,7 +153,7 @@ MascotTools =
fileRice = (e) ->
if e.shiftKey
@nextSibling.click()
@nextElementSibling.click()
updateMascot = ->
MascotTools.change editMascot

View File

@ -125,7 +125,7 @@ ThemeTools =
$.on input, 'click', (evt) ->
if evt.shiftKey
@nextSibling.click()
@nextElementSibling.click()
$.on fileInput, 'change', (evt) ->
ThemeTools.uploadImage evt, @