diff options
Diffstat (limited to 'lib/scripts/behaviour.js')
-rw-r--r-- | lib/scripts/behaviour.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/scripts/behaviour.js b/lib/scripts/behaviour.js index cfdc89157..20b408322 100644 --- a/lib/scripts/behaviour.js +++ b/lib/scripts/behaviour.js @@ -63,9 +63,7 @@ var dw_behaviour = { quickSelect: function(){ jQuery('select.quickselect') .change(function(e){ e.target.form.submit(); }) - .parents('form').find('input[type=submit]').each(function(){ - if (!jQuery(this).hasClass('show')) jQuery(this).hide(); - }); + .closest('form').find('input[type=submit]').not('.show').hide(); }, /** @@ -74,13 +72,13 @@ var dw_behaviour = { * @author Michael Klier <chi@chimeric.de> */ checkWindowsShares: function() { - if(!LANG.nosmblinks || document.all !== null) { + if(!LANG.nosmblinks || typeof(document.all) !== 'undefined') { // No warning requested or none necessary return; } jQuery('a.windows').live('click', function(){ - alert(LANG.nosmblinks); + alert(LANG.nosmblinks.replace(/\\n/,"\n")); }); }, |