I am using the search and replace scanner for a drupal 7 project. I haven't yet played with replace functionality, but find the search IMMENSELY helpful.
I am hitting a few JS issues with the default module:
- JS is being included in the page twice ('scope' => JS_DEFAULT is invalid)
- The '$' jQuery variable is causing JS conflicts
- The return values of TRUE and FALSE are invalid JS values - FALSE is not preventing the page from submitting
- Strings used in the JS are not passed through the t() function, though in the PHP they are, creating a potential issue for non-English users
- The error class is not being removed from the search field after a user starts entering new characters
I am attaching a patch to address these issues.
Comment | File | Size | Author |
---|---|---|---|
#4 | scanner-v7_js_bugs-1789136-4.patch | 2.77 KB | karenann |
scanner-7-js.patch | 2.8 KB | brettbirschbach | |
Comments
Comment #1
brettbirschbach CreditAttribution: brettbirschbach commentedComment #2
brettbirschbach CreditAttribution: brettbirschbach commentedComment #3
zany CreditAttribution: zany commentedThis is a short and clean patch. Applies and works for me.
Comment #4
karenann CreditAttribution: karenann commentedWhen I ran this patch, I got:
It was just an errant tab at the end of that line. I removed it and am resubmitting the patch for the auto testing thing.
Comment #5
fizk CreditAttribution: fizk commentedCommitted, thanks!
Comment #8
brettbirschbach CreditAttribution: brettbirschbach at Bounteous commented