/** * Tests the keepalive method. * * @return void * * @since 3.1 */ public function testKeepalive() { JHtmlBehavior::keepalive(); $this->assertEquals(array('JHtmlBehavior::keepalive' => true, 'JHtmlBehavior::core' => true, 'JHtmlBehavior::polyfill' => array(md5(serialize(array('event', 'lt IE 9'))) => true)), JHtmlBehaviorInspector::getLoaded(), 'The keepalive behavior is not loaded with all dependencies'); }
<?php /** * Part of joomla330 project. * * @copyright Copyright (C) 2011 - 2014 SMS Taiwan, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ // No direct access defined('_JEXEC') or die; JHtmlBehavior::formvalidation(); JHtmlBehavior::keepalive(); JHtmlBootstrap::tooltip(); $data = $this->data; ?> <script type="text/javascript"> Joomla.submitbutton = function(task) { if (task == 'user.cancel' || document.formvalidator.isValid(document.id('user-form'))) { Joomla.submitform(task, document.getElementById('user-form')); } else { alert('<?php echo $this->escape(JText::_('JGLOBAL_VALIDATION_FORM_FAILED')); ?> '); } } window.addEvent('domready', function(){ $$('#toolbar-apply a').addClass('btn btn-primary');
/** * Tests the keepalive method. * * @return void * * @since 3.1 */ public function testKeepalive() { JHtmlBehavior::keepalive(); $this->assertEquals(array('JHtmlBehavior::keepalive' => true), JHtmlBehaviorInspector::getLoaded(), 'The keepalive behavior is not loaded with all dependencies'); }