0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Prevented duplicate binding of upload button on debug importer

Fixes #1899
This commit is contained in:
Zach Schneider 2014-01-10 18:08:24 -05:00
parent b11e6e066b
commit 09b3fb6b3f

View file

@ -21,6 +21,8 @@
dataType: 'json', dataType: 'json',
add: function (e, data) { add: function (e, data) {
/*jslint unparam:true*/ /*jslint unparam:true*/
// unregister click event to preveng duplicate binding
$('#startupload').off("click");
data.context = $('#startupload').prop('disabled', false) data.context = $('#startupload').prop('disabled', false)
.click(function () { .click(function () {
$('#startupload').prop('disabled', true); $('#startupload').prop('disabled', true);