Received: by 10.59.7.234 with SMTP id df10mr537269ved.23.1349268779172; Wed, 03 Oct 2012 05:52:59 -0700 (PDT) X-BeenThere: joomla-dev-general@googlegroups.com Received: by 10.52.36.237 with SMTP id t13ls1083854vdj.3.gmail; Wed, 03 Oct 2012 05:52:54 -0700 (PDT) Received: by 10.52.65.33 with SMTP id u1mr136252vds.18.1349268774763; Wed, 03 Oct 2012 05:52:54 -0700 (PDT) Date: Wed, 3 Oct 2012 05:52:53 -0700 (PDT) From: elin To: joomla-dev-general@googlegroups.com Message-Id: <6251539d-72b8-48cf-93c3-346d4b85c985@googlegroups.com> In-Reply-To: References: <27535aad-e570-41a7-bf3a-9200add9ef54@googlegroups.com> Subject: Re: Better way to disable toltips behavior? MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_302_3175003.1349268773691" ------=_Part_302_3175003.1349268773691 Content-Type: multipart/alternative; boundary="----=_Part_303_10739332.1349268773692" ------=_Part_303_10739332.1349268773692 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit https://github.com/joomla/joomla-platform/pull/1411#issuecomment-7669572 Is an approach. Elin On Tuesday, October 2, 2012 10:41:20 PM UTC-4, Dan YJ wrote: > > I can do this > $document->_script = str_replace('hasTip','nomoretips',$document->_script); > > but that is not the point. We have so many behavior methods and system is > loading some of them no matter what , > I think JHtml::_('behavior.disable','tooltips'); or any > other behavior should be in place instead of us hacking around > > On Tuesday, October 2, 2012 10:16:05 PM UTC-4, Dan YJ wrote: >> >> Is there any way to disable JHtml::_('behavior.tooltip'); >> even if removed from all files in html overrides , the system is still >> loading it >> so instead doing $odcument->_scripts preg_replace for the snippet is >> there any elegant way of removing it? >> > ------=_Part_303_10739332.1349268773692 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable https://github.com/joomla/joomla-platform/pull/1411#issuecomment-= 7669572

Is an approach.

Eli= n

On Tuesday, October 2, 2012 10:41:20 PM UTC-4, Dan YJ wrote:I can do this 
$document-&g= t;_script =3D str_replace('hasTip','nomoretips',$document->_sc= ript);

but that is not the point. We have so many = behavior methods and system is loading some of them no matter what ,
<= div>I think   JHtml::_('behavior.disable','tooltips');  = ;or any other behavior should be in place instead of us hacking a= round

On Tuesday, October 2, 2012 10:16:05 PM UTC-4, Dan YJ wrote:Is there any way to disable JHtm= l::_('behavior.tooltip');  
even if removed from all files in= html overrides , the system is still loading it
so instead doing=    $odcument->_scripts preg_replace for the snippet is there = any elegant way of removing it?
------=_Part_303_10739332.1349268773692-- ------=_Part_302_3175003.1349268773691--