Fix theme importing #861
note to self: use node.nextElementSibling when assuming the needed node is an element.
This commit is contained in:
parent
2858f08181
commit
37e43ad19d
@ -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() {
|
||||
|
||||
@ -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() {
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -153,7 +153,7 @@ MascotTools =
|
||||
|
||||
fileRice = (e) ->
|
||||
if e.shiftKey
|
||||
@nextSibling.click()
|
||||
@nextElementSibling.click()
|
||||
|
||||
updateMascot = ->
|
||||
MascotTools.change editMascot
|
||||
|
||||
@ -125,7 +125,7 @@ ThemeTools =
|
||||
|
||||
$.on input, 'click', (evt) ->
|
||||
if evt.shiftKey
|
||||
@nextSibling.click()
|
||||
@nextElementSibling.click()
|
||||
|
||||
$.on fileInput, 'change', (evt) ->
|
||||
ThemeTools.uploadImage evt, @
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user