Файловый менеджер - Редактировать - /home/lmsyaran/public_html/components/com_reservation/assets/js/consultant_plan.js
Назад
/*----------------------------------------------------------------------------------| www.vdm.io |----/ fdsh /-------------------------------------------------------------------------------------------------------/ @version 1.0.39 @build 4th April, 2023 @created 17th December, 2020 @package Reservation @subpackage consultant_plan.js @author farhad shahbazi <http://farhad.com> @copyright Copyright (C) 2015. All Rights Reserved @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) .-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( \____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) /------------------------------------------------------------------------------------------------------*/ /* JS Document */ /***[JCBGUI.site_view.javascript_file.37.$$$$]***/ jQuery(document).ready(function($) { $('[id^=del-]').click(function(){ /* when the button in the form, display the entered values in the modal */ id = '#plan-' + this.id.slice(4) $(id)[0].checked = true; }); $('#submit').click(function(){ /* when the submit button in the modal is clicked, submit the form */ $('#listviewform').submit(); }); function fill_form(form) { var form= $(form); $('[id^=edit-]').click(function (){ var tr = $(this).parents('tr'); var td= tr.find('td') td.each(function (index, value) { var data_field= $(this).data('field'); var data_identifier= $(this).data('identifier'); if (data_field !== undefined) { var value= $(this).text(); if (data_identifier== 'name') { var field= form.find($('[name="'+data_field+'"]')); field.val(value.replace(/[^\d]+/i, "")); } } }) before_id = $('#planid').val() if(before_id) { $("#row-" + before_id).removeClass('selected') } $('#planid').val(this.id.slice(5)); $("#row-" + this.id.slice(5)).addClass('selected') elm = jQuery("#adminForm"); jQuery([document.documentElement, document.body]).animate({ scrollTop: elm.offset().top - 150 }, 1000); jQuery('#submitdata').html('ویرایش'); }); } fill_form('#adminForm') })/***[/JCBGUI$$$$]***/
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка