Skip to content

Commit

Permalink
[#1277] Removed changed event as it doesn't fire
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmartin committed Nov 21, 2013
1 parent 1b6a04b commit ecc19d5
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ckan/public/base/javascript/modules/resource-reorder.js
Expand Up @@ -26,7 +26,7 @@ this.ckan.module('resource-reorder', function($, _) {
form_actions: [
'<div class="form-actions">',
'<a href="javascript:;" class="cancel btn pull-left"></a>',
'<a href="javascript:;" class="save btn btn-primary disabled"></a>',
'<a href="javascript:;" class="save btn btn-primary"></a>',
'</div>'
].join('\n'),
handle: [
Expand Down Expand Up @@ -65,7 +65,6 @@ this.ckan.module('resource-reorder', function($, _) {

this.el
.sortable()
.on('change', this._onSortOrderChanged)
.sortable('disable');

},
Expand Down Expand Up @@ -98,10 +97,6 @@ this.ckan.module('resource-reorder', function($, _) {
}
},

_onSortOrderChanged: function() {
$('.save', this.html_form_actions).removeClass('disabled')
},

_onHandleSave: function() {
if (!$('.save', this.html_form_actions).hasClass('disabled')) {
var order = [];
Expand Down

0 comments on commit ecc19d5

Please sign in to comment.