Skip to content

Commit

Permalink
[#1232] Added whitespace to lines
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmartin committed Dec 3, 2013
1 parent c3a3cf9 commit 26a1a1e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions ckan/public/base/javascript/modules/slug-preview.js
Expand Up @@ -11,17 +11,17 @@ this.ckan.module('slug-preview-target', {

// Make sure there isn't a value in the field already...
if (el.val() == '') {
// Once the preview box is modified stop watching it.
sandbox.subscribe('slug-preview-modified', function () {
el.off('.slug-preview');
});
// Once the preview box is modified stop watching it.
sandbox.subscribe('slug-preview-modified', function () {
el.off('.slug-preview');
});

// 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) {
sandbox.publish('slug-target-changed', this.value);
//slug.val(this.value).trigger('change');
});
// 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) {
sandbox.publish('slug-target-changed', this.value);
//slug.val(this.value).trigger('change');
});
}
}
});
Expand Down

0 comments on commit 26a1a1e

Please sign in to comment.