Looks like the import mascot code was broken anyways!

This commit is contained in:
Zixaphir 2014-01-14 02:04:23 -07:00
parent 44a031f152
commit 572773ad8b
4 changed files with 6 additions and 11 deletions

View File

@ -13365,7 +13365,7 @@
return;
}
}
Mascots[name] = imported;
Mascots[name] = mascot;
return $.get("userMascots", {}, function(_arg) {
var userMascots;
userMascots = _arg.userMascots;
@ -16857,9 +16857,7 @@
$.on($("#importMascot", batchmascots), 'click', function() {
return this.nextSibling.click();
});
$.on($("#importMascotButton", batchmascots), 'change', function(e) {
return MascotTools.importMascot(e);
});
$.on($("#importMascotButton", batchmascots), 'change', MascotTools.importMascot);
$.on($('#undelete', batchmascots), 'click', function() {
var mascots;
if (!(Conf["Deleted Mascots"].length > 0)) {

View File

@ -13354,7 +13354,7 @@
return;
}
}
Mascots[name] = imported;
Mascots[name] = mascot;
return $.get("userMascots", {}, function(_arg) {
var userMascots;
userMascots = _arg.userMascots;
@ -16850,9 +16850,7 @@
$.on($("#importMascot", batchmascots), 'click', function() {
return this.nextSibling.click();
});
$.on($("#importMascotButton", batchmascots), 'change', function(e) {
return MascotTools.importMascot(e);
});
$.on($("#importMascotButton", batchmascots), 'change', MascotTools.importMascot);
$.on($('#undelete', batchmascots), 'click', function() {
var mascots;
if (!(Conf["Deleted Mascots"].length > 0)) {

View File

@ -727,8 +727,7 @@ Settings =
$.on $("#importMascot", batchmascots), 'click', ->
@nextSibling.click()
$.on $("#importMascotButton", batchmascots), 'change', (e) ->
MascotTools.importMascot e
$.on $("#importMascotButton", batchmascots), 'change', MascotTools.importMascot
$.on $('#undelete', batchmascots), 'click', ->
unless Conf["Deleted Mascots"].length > 0

View File

@ -371,7 +371,7 @@ MascotTools =
if Mascots[name] and not $.remove Conf["Deleted Mascots"], name
return unless confirm "The mascot #{name} already exists? Would you like to overwrite it?"
Mascots[name] = imported
Mascots[name] = mascot
$.get "userMascots", {}, ({userMascots}) ->
userMascots[name] = Mascots[name]