File manager - Edit - /home/jardides/www/Jardi-design/administrator/components/com_templateck/widgets/topfixedwrapper/interface.js
Back
/** * @name Template Creator CK 3 * @package com_templateck * @copyright Copyright (C) 2013. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt * @author Cedric Keiflin - http://www.template-creator.com - http://www.joomlack.fr */ function TCK_WidgetTopfixedwrapperEnable() { $ck('.widgetrow[data-name="topfixedwrapper"]').attr('data-enabled', '1'); $ck('#widgetsElements .widget[data-name="topfixedwrapper"]').attr('data-enabled', '1'); $ck('.widgetrow[data-name="topfixedwrapper"] .widgetedit').trigger('click'); } function TCK_WidgetTopfixedwrapperDisable() { $ck('.widgetrow[data-name="topfixedwrapper"]').attr('data-enabled', '0'); $ck('#widgetsElements .widget[data-name="topfixedwrapper"]').attr('data-enabled', '0'); } function TCK_WidgetTopfixedwrapperEdit(btn) { $ck('#widgetedition').empty(); ckAfterWidgetEditionDisplay(); // needed for system actions, to add the back button var blocsList = new Array(); $ck('#body > .wrapper').each(function() { var bloc = new Object(); bloc['id'] = this.id; bloc['enabled'] = $ck(this).attr('data-class') && $ck(this).attr('data-class').indexOf('topfixedwrapper') !== -1 ? '1' : '0'; blocsList.push(bloc); }); var myurl = URIBASE + "/index.php?option=com_templateck&task=ajaxCallWidgetAction"; $ck.ajax({ type: "POST", url: myurl, data: { name: 'topfixedwrapper', func: 'listWrapperOptions', blocsList: JSON.stringify(blocsList) } }).done(function(code) { $ck('#widgetedition').append(code); initModalPopup(); }).fail(function() { alert(Joomla.JText._('CK_FAILED', 'Failed')); }); /* $ck('#widgetedition').empty(); ckAfterWidgetEditionDisplay(); // needed for system actions, to add the back button var html = ''; $ck('#body > .wrapper').each(function() { var btnClass = ''; if ($ck(this).attr('data-topfixedbackground')) btnClass = ' active ckbutton-info'; html += '<div class="widgetrow clearfix">' + '<span class="" style="width:150px;">' + this.id + '</span>' + '<span class="">' + '<span class="ckselecttopfixedwrapper ckbutton' + btnClass + '" onclick="ckSelectTopfixedWrapper(this, \'' + this.id + '\')">' + '<span class="fa fa-check-square-o"></span> ' + Joomla.JText._('CK_SELECT', 'Select') + '</span>' + '</span>' + '</div>'; }); $ck('#widgetedition').append(html);*/ } function TCK_WidgetTopfixedwrapperToggle(btn) { var rowData = getRowDataFromBtn(btn); var id = rowData.attr('data-id'); $ck(btn).toggleClass('active ckbutton-info'); $ck('#widgetedition .ckselecttopfixedwrapper').not(btn).removeClass('active ckbutton-info'); // unset the top fixed wrapper on all wrapper $ck('#body > .wrapper').each(function() { if ($ck(this).attr('data-class')) { dataClass = $ck(this).attr('data-class').replace('topfixedwrapper', '').trim(); } else { dataClass = ''; } $ck(this).attr('data-class', dataClass).removeAttr('data-topfixedbackground'); }); // set the top fixed wrapper on the selected wrapper only if ($ck(btn).hasClass('active')) { if ($ck('#' + id).attr('data-class')) { dataClass = $ck('#' + id).attr('data-class') + ' topfixedwrapper'; } else { dataClass = 'topfixedwrapper'; } $ck('#' + id).attr('data-class', dataClass).attr('data-topfixedbackground', '1'); } } function getRowDataFromBtn(btn) { var rowData = $ck($ck(btn).parents('.datarow')[0]); return rowData; }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings