Using jQuery selectors etc would:
* make the code smaller, e.g. $('.edit-remove-text').val(decodeURIComponent('foo')); instead of document.getElementById('edit-remove-text').value = decodeURIComponent('foo');
* Make it easier to add additional dynamic functionality, e.g. client-side validation.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | taxonomy_redirect-n392626_js.patch | 1.81 KB | damienmckenna |
| #2 | taxonomy_redirect-n392626.patch | 1.56 KB | damienmckenna |
Comments
Comment #1
damienmckennaCorrection, that should be:
$('#edit-remove-text').val(decodeURIComponent('foo'));Comment #2
damienmckennaInitial patch.
Comment #3
damienmckennaHere's a patch for the taxonomy_redirect.js file.
Comment #4
agileware commentedThanks for this patch.
I have applied this now. It should be in the dev version sometime today and then in the next release.