Skip to content

Commit

Permalink
Merge pull request #3617 from klikstermkd/2501-slug-preview-autocomplete
Browse files Browse the repository at this point in the history
Allow slug preview to work with autocomplete fields
  • Loading branch information
smotornyuk committed Jun 21, 2017
2 parents 0daf7f9 + 69d32a0 commit 481dc5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/public/base/javascript/modules/slug-preview.js
Expand Up @@ -18,7 +18,7 @@ this.ckan.module('slug-preview-target', {

// Watch for updates to the target field and update the hidden slug field
// triggering the "change" event manually.
el.on('keyup.slug-preview', function (event) {
el.on('keyup.slug-preview input.slug-preview', function (event) {
sandbox.publish('slug-target-changed', this.value);
//slug.val(this.value).trigger('change');
});
Expand Down

0 comments on commit 481dc5d

Please sign in to comment.