Commits

Luke Plant  committed aa32b13

Class items are removed from list when not available, not just greyed out.

  • Participants
  • Parent commits 8a32a24

Comments (0)

Files changed (1)

File semanticeditor/media/semanticeditor/javascript/wymeditor/plugins/semantic/wymeditor.semantic.js

     var sect_id = this.get_current_section(style);
     if (sect_id == undefined) {
         // Can't use it.
-        btn.addClass("disabled");
+        if (style.prestype == "command")
+            // Don't want the class list (displayed below command list)
+            // to jump up and down
+            btn.addClass("disabled");
+        else
+            btn.hide();
     } else {
-        btn.removeClass("disabled");
+        if (style.prestype == "command")
+            btn.removeClass("disabled");
+        else
+            btn.show();
     }
 };