diff options
author | lou <louiscuny@gmail.com> | 2012-12-06 10:12:35 +0100 |
---|---|---|
committer | lou <louiscuny@gmail.com> | 2012-12-06 10:12:35 +0100 |
commit | 11a3330a2f331d1182ebb5a2007dc6ab93e57714 (patch) | |
tree | ae0806a815d1bc7b58eb076de5a4646539feff41 /js | |
parent | 8bf17792710d477c3a954035e538fe92a6dd2ecf (diff) | |
download | multi-select-11a3330a2f331d1182ebb5a2007dc6ab93e57714.zip multi-select-11a3330a2f331d1182ebb5a2007dc6ab93e57714.tar.gz multi-select-11a3330a2f331d1182ebb5a2007dc6ab93e57714.tar.bz2 |
copy all attributes to selectables/selection elements
Diffstat (limited to 'js')
-rw-r--r-- | js/jquery.multi-select.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/js/jquery.multi-select.js b/js/jquery.multi-select.js index 177060a..e17b5a1 100644 --- a/js/jquery.multi-select.js +++ b/js/jquery.multi-select.js @@ -69,10 +69,9 @@ var attributes = ""; for (var cpt = 0; cpt < this.attributes.length; cpt++){ - var attr = this.attributes[cpt], - name = (attr.name == 'value') ? 'ms-value' : attr.name; + var attr = this.attributes[cpt]; - attributes += name+'="'+attr.value+'" '; + attributes += attr.name+'="'+attr.value+'" '; } var selectableLi = $('<li '+attributes+'><span>'+$(this).text()+'</span></li>'), selectedLi = selectableLi.clone(); |