https://bugzilla.wikimedia.org/show_bug.cgi?id=20919
Amir E. Aharoni <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED AssignedTo|[email protected]. |[email protected] |org |l --- Comment #7 from Amir E. Aharoni <[email protected]> 2011-09-13 08:45:11 UTC --- Created attachment 9055 --> https://bugzilla.wikimedia.org/attachment.cgi?id=9055 Patch to fix the problem. Should be tested. "Replace next" now replaces the currently selected text instead of finding the next occurrence and replacing it. To keep the location of the current occurrence, i added matchIndex to $(this).data. I added some comments renamed a couple of variable for readability: * s to textRemainder * replace to actualReplacement This is my first significant jQuery-style patch so it may have embarrassing mistakes - constructive criticism is welcome. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. You are the assignee for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
