Skip to content

Commit

Permalink
[#1449] Fix extras deletion
Browse files Browse the repository at this point in the history
The custom-fields module was actually disabling the fields when clicking
the delete extra cross button. This prevented the key and value from
being sent, which caused a validation error.
We now change only the class to make it look disabled, which should be
good enough.
  • Loading branch information
amercader committed Jan 28, 2014
1 parent 4670801 commit f0dbe64
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ckan/public/base/javascript/modules/custom-fields.js
Expand Up @@ -83,7 +83,6 @@ this.ckan.module('custom-fields', function (jQuery, _) {
*/
disableField: function (field, disable) {
field.toggleClass('disabled', disable !== false);
field.find(':input:not(:checkbox)').prop('disabled', disable !== false);
},

/* Event handler that fires when the last key in the custom field block
Expand Down

0 comments on commit f0dbe64

Please sign in to comment.