Commits

Sebastian Sdorra  committed 3fedfb1

enable missing help for branchwp grid

  • Participants
  • Parent commits f571b03

Comments (0)

Files changed (1)

File src/main/resources/scm/sonia.branchwp.js

   
   addIcon: 'resources/images/add.gif',
   removeIcon: 'resources/images/delete.gif',
+  helpIcon: 'resources/images/help.gif',
   
   enableHelpText: 'Enable Branch write protection. \n\
     Only admins, owners and users defined in the whitelist below are able to write.',
               this.branchwpStore.remove(selected);
             }
           }
+        }, '->',{
+          id: 'branchwpGridHelp',
+          xtype: 'box',
+          autoEl: {
+            tag: 'img',
+            src: this.helpIcon
+          }
         }]
       }]
     };
     
     Ext.apply(this, Ext.apply(this.initialConfig, config));
     Sonia.branchwp.ConfigPanel.superclass.initComponent.apply(this, arguments);
-  }, 
+  },
+  
+  afterRender: function(){
+    // call super
+    Sonia.branchwp.ConfigPanel.superclass.afterRender.apply(this, arguments);
+
+    Ext.QuickTips.register({
+      target: Ext.getCmp('branchwpGridHelp'),
+      title: '',
+      text: this.branchwpGridHelpText,
+      enabled: true
+    });
+  },
   
   loadBranchwpPermissions: function(store, repository){
     if (debug){