added option to disable auto hide for help texts

This commit is contained in:
Sebastian Sdorra
2012-11-15 21:11:42 +01:00
parent cf1586f7b1
commit f15247efd1

View File

@@ -52,12 +52,18 @@ Ext.override(Ext.form.Field, {
cls: cls cls: cls
}); });
Ext.QuickTips.register({ var quickTip = {
target : helpButton, target : helpButton,
title : '', title : '',
text : text, text : text,
enabled : true enabled : true
}); };
if (this.helpDisableAutoHide){
quickTip.autoHide = !this.helpDisableAutoHide;
}
Ext.QuickTips.register(quickTip);
}, },
getHelpButtonClass: function(){ getHelpButtonClass: function(){