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);
|
container = $("#mascotcontent", dialog);
|
||||||
fileRice = function(e) {
|
fileRice = function(e) {
|
||||||
if (e.shiftKey) {
|
if (e.shiftKey) {
|
||||||
return this.nextSibling.click();
|
return this.nextElementSibling.click();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
updateMascot = function() {
|
updateMascot = function() {
|
||||||
@ -18154,7 +18154,7 @@
|
|||||||
});
|
});
|
||||||
$.on(input, 'click', function(evt) {
|
$.on(input, 'click', function(evt) {
|
||||||
if (evt.shiftKey) {
|
if (evt.shiftKey) {
|
||||||
return this.nextSibling.click();
|
return this.nextElementSibling.click();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$.on(fileInput, 'change', function(evt) {
|
$.on(fileInput, 'change', function(evt) {
|
||||||
@ -19648,7 +19648,7 @@
|
|||||||
return Settings.close();
|
return Settings.close();
|
||||||
});
|
});
|
||||||
$.on($("#import", div), 'click', function() {
|
$.on($("#import", div), 'click', function() {
|
||||||
return this.nextSibling.click();
|
return this.nextElementSibling.click();
|
||||||
});
|
});
|
||||||
$.on($("#importbutton", div), 'change', ThemeTools.importtheme);
|
$.on($("#importbutton", div), 'change', ThemeTools.importtheme);
|
||||||
$.on($('#tUndelete', div), 'click', function() {
|
$.on($('#tUndelete', div), 'click', function() {
|
||||||
@ -19815,7 +19815,7 @@
|
|||||||
return Settings.close();
|
return Settings.close();
|
||||||
});
|
});
|
||||||
$.on($("#importMascot", batchmascots), 'click', function() {
|
$.on($("#importMascot", batchmascots), 'click', function() {
|
||||||
return this.nextSibling.click();
|
return this.nextElementSibling.click();
|
||||||
});
|
});
|
||||||
$.on($("#importMascotButton", batchmascots), 'change', MascotTools.importMascot);
|
$.on($("#importMascotButton", batchmascots), 'change', MascotTools.importMascot);
|
||||||
$.on($('#undelete', batchmascots), 'click', function() {
|
$.on($('#undelete', batchmascots), 'click', function() {
|
||||||
|
|||||||
@ -17557,7 +17557,7 @@
|
|||||||
container = $("#mascotcontent", dialog);
|
container = $("#mascotcontent", dialog);
|
||||||
fileRice = function(e) {
|
fileRice = function(e) {
|
||||||
if (e.shiftKey) {
|
if (e.shiftKey) {
|
||||||
return this.nextSibling.click();
|
return this.nextElementSibling.click();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
updateMascot = function() {
|
updateMascot = function() {
|
||||||
@ -18182,7 +18182,7 @@
|
|||||||
});
|
});
|
||||||
$.on(input, 'click', function(evt) {
|
$.on(input, 'click', function(evt) {
|
||||||
if (evt.shiftKey) {
|
if (evt.shiftKey) {
|
||||||
return this.nextSibling.click();
|
return this.nextElementSibling.click();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$.on(fileInput, 'change', function(evt) {
|
$.on(fileInput, 'change', function(evt) {
|
||||||
@ -19679,7 +19679,7 @@
|
|||||||
return Settings.close();
|
return Settings.close();
|
||||||
});
|
});
|
||||||
$.on($("#import", div), 'click', function() {
|
$.on($("#import", div), 'click', function() {
|
||||||
return this.nextSibling.click();
|
return this.nextElementSibling.click();
|
||||||
});
|
});
|
||||||
$.on($("#importbutton", div), 'change', ThemeTools.importtheme);
|
$.on($("#importbutton", div), 'change', ThemeTools.importtheme);
|
||||||
$.on($('#tUndelete', div), 'click', function() {
|
$.on($('#tUndelete', div), 'click', function() {
|
||||||
@ -19846,7 +19846,7 @@
|
|||||||
return Settings.close();
|
return Settings.close();
|
||||||
});
|
});
|
||||||
$.on($("#importMascot", batchmascots), 'click', function() {
|
$.on($("#importMascot", batchmascots), 'click', function() {
|
||||||
return this.nextSibling.click();
|
return this.nextElementSibling.click();
|
||||||
});
|
});
|
||||||
$.on($("#importMascotButton", batchmascots), 'change', MascotTools.importMascot);
|
$.on($("#importMascotButton", batchmascots), 'change', MascotTools.importMascot);
|
||||||
$.on($('#undelete', batchmascots), 'click', function() {
|
$.on($('#undelete', batchmascots), 'click', function() {
|
||||||
|
|||||||
@ -570,7 +570,7 @@ Settings =
|
|||||||
Settings.close()
|
Settings.close()
|
||||||
|
|
||||||
$.on $("#import", div), 'click', ->
|
$.on $("#import", div), 'click', ->
|
||||||
@nextSibling.click()
|
@nextElementSibling.click()
|
||||||
|
|
||||||
$.on $("#importbutton", div), 'change', ThemeTools.importtheme
|
$.on $("#importbutton", div), 'change', ThemeTools.importtheme
|
||||||
|
|
||||||
@ -726,7 +726,7 @@ Settings =
|
|||||||
Settings.close()
|
Settings.close()
|
||||||
|
|
||||||
$.on $("#importMascot", batchmascots), 'click', ->
|
$.on $("#importMascot", batchmascots), 'click', ->
|
||||||
@nextSibling.click()
|
@nextElementSibling.click()
|
||||||
|
|
||||||
$.on $("#importMascotButton", batchmascots), 'change', MascotTools.importMascot
|
$.on $("#importMascotButton", batchmascots), 'change', MascotTools.importMascot
|
||||||
|
|
||||||
|
|||||||
@ -153,7 +153,7 @@ MascotTools =
|
|||||||
|
|
||||||
fileRice = (e) ->
|
fileRice = (e) ->
|
||||||
if e.shiftKey
|
if e.shiftKey
|
||||||
@nextSibling.click()
|
@nextElementSibling.click()
|
||||||
|
|
||||||
updateMascot = ->
|
updateMascot = ->
|
||||||
MascotTools.change editMascot
|
MascotTools.change editMascot
|
||||||
|
|||||||
@ -125,7 +125,7 @@ ThemeTools =
|
|||||||
|
|
||||||
$.on input, 'click', (evt) ->
|
$.on input, 'click', (evt) ->
|
||||||
if evt.shiftKey
|
if evt.shiftKey
|
||||||
@nextSibling.click()
|
@nextElementSibling.click()
|
||||||
|
|
||||||
$.on fileInput, 'change', (evt) ->
|
$.on fileInput, 'change', (evt) ->
|
||||||
ThemeTools.uploadImage evt, @
|
ThemeTools.uploadImage evt, @
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user