diff options
author | lou <louiscuny@gmail.com> | 2011-05-20 17:10:22 +0200 |
---|---|---|
committer | lou <louiscuny@gmail.com> | 2011-05-20 17:10:22 +0200 |
commit | 2792f64b5e3a91396881f534ec6986c646d45ce8 (patch) | |
tree | 4b2fc5efee542b99177028ee5f8031532d08f274 /js/jquery.multi-select.js | |
parent | dc8725e27e3bd38ea4b891039f4feaef220328ec (diff) | |
download | multi-select-2792f64b5e3a91396881f534ec6986c646d45ce8.zip multi-select-2792f64b5e3a91396881f534ec6986c646d45ce8.tar.gz multi-select-2792f64b5e3a91396881f534ec6986c646d45ce8.tar.bz2 |
fix bug on ie
Diffstat (limited to 'js/jquery.multi-select.js')
-rw-r--r-- | js/jquery.multi-select.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/jquery.multi-select.js b/js/jquery.multi-select.js index b83f285..d157401 100644 --- a/js/jquery.multi-select.js +++ b/js/jquery.multi-select.js @@ -14,7 +14,7 @@ multiSelects.each(function(){ var ms = $(this); ms.val(null); - ms.attr('id', ms.attr('id') != undefined ? ms.attr('id') : 'ms-'+Math.ceil(Math.random()*1000)); + ms.attr('id', ms.attr('id') ? ms.attr('id') : 'ms-'+Math.ceil(Math.random()*1000)); var container = $('<div id="ms-'+ms.attr('id')+'" class="ms-container"></div>'), selectableContainer = $('<div class="ms-selectable"></div>'), selectedContainer = $('<div class="ms-selection"></div>'), @@ -69,7 +69,7 @@ selectedUl = $('#ms-'+ms.attr('id')+' .ms-selection ul'), selectableLi = selectableUl.children('li[ms-value="'+value+'"]'); - if (selectableLi.attr('disabled') == undefined){ + if (!selectableLi.attr('disabled')){ selectableLi.hide(); ms.val(newValues); if(titleAttr){ |