dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f07b78f
)
htmlform multiselect chosen: Replace lists
author
Ryan Lane
<rlane@wikimedia.org>
Thu, 8 Aug 2013 08:22:42 +0000
(16:22 +0800)
committer
Ryan Lane
<rlane@wikimedia.org>
Thu, 22 Aug 2013 17:47:23 +0000
(10:47 -0700)
Rather than appending a new checkbox list and removing the old one,
replace the old list with the new one, to preserve ordering.
Change-Id: Idd77455bdbaf423e7a51cf3789460d1980f78922
resources/mediawiki/mediawiki.htmlform.js
patch
|
blob
|
history
diff --git
a/resources/mediawiki/mediawiki.htmlform.js
b/resources/mediawiki/mediawiki.htmlform.js
index
8e764e1
..
de06859
100644
(file)
--- a/
resources/mediawiki/mediawiki.htmlform.js
+++ b/
resources/mediawiki/mediawiki.htmlform.js
@@
-103,8
+103,7
@@
$fieldLabelText.text( $oldContainer.find( '.mw-label label' ).text() );
$fieldLabel.append( $fieldLabelText );
$container.prepend( $fieldLabel );
- $oldContainer.parent().append( $container );
- $oldContainer.remove();
+ $oldContainer.replaceWith( $container );
return $container;
}