| Server IP : 213.186.33.4 / Your IP : 216.73.216.193 Web Server : Apache System : Linux webm006.cluster103.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : awebpaca ( 35430) PHP Version : 8.5.0 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/a/w/e/awebpaca/lessarmoudes/plugins/system/t3/base-bs3/js/ |
Upload File : |
/**
*------------------------------------------------------------------------------
* @package T3 Framework for Joomla!
*------------------------------------------------------------------------------
* @copyright Copyright (C) 2004-2013 JoomlArt.com. All Rights Reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @authors JoomlArt, JoomlaBamboo, (contribute to this project at github
* & Google group to become co-author)
* @Google group: https://groups.google.com/forum/#!forum/t3fw
* @Link: http://t3-framework.org
*------------------------------------------------------------------------------
*/
!function($){
$(document).ready(function(){
//frontend edit radio on/off - auto convert on-off radio if applicable
$('fieldset.radio').filter(function(){
return $(this).find('input').length == 2 && $(this).find('input').filter(function(){
return $.inArray(this.value + '', ['0', '1']) !== -1;
}).length == 2;
}).addClass('t3onoff').removeClass('btn-group');
//add class on/off
$('fieldset.t3onoff').find('label').addClass(function(){
return $(this).hasClass('off') || $(this).prev('input').val() == '0' ? 'off' : 'on'
});
//listen to all
$('fieldset.radio').find('label').unbind('click').click(function() {
var label = $(this),
input = $('#' + label.attr('for'));
if (!input.prop('checked')){
label.addClass('active').siblings().removeClass('active');
input.prop('checked', true).trigger('change');
}
});
//initial state
$('.radio input[checked=checked]').each(function(){
$('label[for=' + $(this).attr('id') + ']').addClass('active');
});
});
}(jQuery);