]> wagnertech.de Git - kivitendo-erp.git/commitdiff
ActionBar: Unterstützung für Tooltips für deaktivierte Actions
authorMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 9 Nov 2016 09:27:33 +0000 (10:27 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 28 Feb 2017 09:04:33 +0000 (10:04 +0100)
SL/Layout/ActionBar/Action.pm
js/kivi.ActionBar.js

index 1ee9a3e9547ce1e23a9b3413fc7e85916a28d10b..5d03b7c0569b18b7378b5f47440e87bf51dd3cfe 100644 (file)
@@ -78,7 +78,7 @@ on click submit the form specified by form-selector with the additional params
 
 on click call the specified function (is this a special case of checks?)
 
 
 on click call the specified function (is this a special case of checks?)
 
-- disabled => true/false (done)
+- disabled => true/false/tooltip explaning why disabled (done)
 
 TODO:
 
 
 TODO:
 
index 597b48528e96c4b9ee62b546eaeba0fcc6c99d39..4d5fb54c406b71930a5a8213d7626990f58c8222 100644 (file)
@@ -103,6 +103,8 @@ namespace('kivi', function(k){
 
     if (data.disabled) {
       $(e).addClass(CLASSES.disabled);
 
     if (data.disabled) {
       $(e).addClass(CLASSES.disabled);
+      if (!data.tooltip && (data.disabled != '1'))
+        data.tooltip = data.disabled;
     }
 
     if (data.accesskey) {
     }
 
     if (data.accesskey) {