X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Roo%2FQuickTips.js;h=c5a52ae31ec5cb8d264ccdbdd2a0a14e7abccbe2;hb=75cbc4ce04c9c01ac47671cb01320ce699128d00;hp=1d8a5d5df987010a300343ff746e4849782335b5;hpb=de0ef26839732f0a3ee87f41456995ea6e101555;p=roojs1 diff --git a/Roo/QuickTips.js b/Roo/QuickTips.js index 1d8a5d5df9..c5a52ae31e 100644 --- a/Roo/QuickTips.js +++ b/Roo/QuickTips.js @@ -11,7 +11,7 @@ /** * @class Roo.QuickTips * Provides attractive and customizable tooltips for any element. - * @singleton + * @static */ Roo.QuickTips = function(){ var el, tipBody, tipBodyText, tipTitle, tm, cfg, close, tagEls = {}, esc, removeCls = null, bdLeft, bdRight; @@ -44,12 +44,12 @@ Roo.QuickTips = function(){ t.removeAttribute("title"); e.preventDefault(); }else{ - ttp = t.qtip || et.getAttributeNS(ns, cfg.attribute); + ttp = t.qtip || et.getAttributeNS(ns, cfg.attribute) || et.getAttributeNS(cfg.alt_namespace, cfg.attribute) ; } if(ttp){ showProc = show.defer(tm.showDelay, tm, [{ el: t, - text: ttp, + text: ttp.replace(/\\n/g,'
'), width: et.getAttributeNS(ns, cfg.width), autoHide: et.getAttributeNS(ns, cfg.hide) != "user", title: et.getAttributeNS(ns, cfg.title), @@ -385,7 +385,8 @@ target Element/String/Array An Element, id or array of ids that this quic // private tagConfig : { - namespace : "roo", + namespace : "roo", // was ext?? this may break.. + alt_namespace : "ext", attribute : "qtip", width : "width", target : "target",