Pflichtenheftitems: AJAX-Calls für erweitertes Menü gefixt
authorMoritz Bunkus <m.bunkus@linet-services.de>
Thu, 18 Jul 2013 14:04:56 +0000 (16:04 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 1 Apr 2014 11:09:07 +0000 (13:09 +0200)
js/requirement_spec.js

index 61babb8..3e4c485 100644 (file)
@@ -218,9 +218,7 @@ ns.disable_edit_item_commands = function(key, opt) {
 };
 
 ns.disable_add_function_block_command = function(key, opt) {
-  if (ns.find_item_id(opt.$trigger))
-    return false;
-  return opt.$trigger.attr('id') != "section-list-empty";
+  return opt.$trigger.attr('id') == "sections";
 };
 
 ns.cancel_edit_item_form = function(form_id_base, options) {