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

View File

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

View File

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

View File

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