mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-23 22:11:09 +03:00
Prevented duplicate binding of upload button on debug importer
Fixes #1899
This commit is contained in:
parent
b11e6e066b
commit
09b3fb6b3f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user