r107579 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107578‎ | r107579 | r107580 >
Date:16:34, 29 December 2011
Author:yaron
Status:deferred
Tags:
Comment:
Fix for combobox values that contain an apostrophe
Modified paths:
  • /trunk/extensions/SemanticForms/libs/SemanticForms.js (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/libs/SemanticForms.js
@@ -910,7 +910,7 @@
911911 }
912912 select.val(ui.item.id);
913913 self._trigger("selected", event, {
914 - item: select.find("[value='" + ui.item.id + "']")
 914+ item: select.find("[value='" + ui.item.id.replace("'", "\\'") + "']")
915915 });
916916
917917 },