Skip to content

Commit

Permalink
Prevented duplicate binding of upload button on debug importer
Browse files Browse the repository at this point in the history
  • Loading branch information
schneidmaster committed Jan 10, 2014
1 parent b11e6e0 commit 09b3fb6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/client/views/debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 09b3fb6

Please sign in to comment.