Fix showing/hiding unsetflag entry in other actions menu
authorMichael M Slusarz <slusarz@curecanti.org>
Sat, 11 Apr 2009 23:20:07 +0000 (17:20 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Sat, 11 Apr 2009 23:20:07 +0000 (17:20 -0600)
imp/js/src/DimpBase.js

index 6b2e5bb..f18ded9 100644 (file)
@@ -782,9 +782,9 @@ var DimpBase = {
         case 'ctx_otheractions':
             tmp = $('oa_blacklist', 'oa_whitelist', 'oa_undeleted');
             if (this.viewport.getMetaData('readonly')) {
-                $('oa_setflag').hide();
+                $('oa_setflag', 'oa_unsetflag').invoke('hide');
             } else {
-                tmp.push($('oa_setflag'));
+                tmp = tmp.concat($('oa_setflag', 'oa_unsetflag'));
             }
             tmp.compact().invoke(this.viewport.getSelected().size() ? 'show' : 'hide');
             break;