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

Merge pull request #1900 from schneidmaster/fix-1899

Prevented duplicate binding of upload button on debug importer
This commit is contained in:
Hannah Wolfe 2014-01-11 04:24:16 -08:00
commit c89fa7ab64

View file

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