✏️ 正在编辑: back.js
路径:
/home/bpioifn/www/pigmentse/modules/axepta/views/js/back.js
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
/** * 1997-2016 Quadra Informatique * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) that is available * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0 * If you are unable to obtain it through the world-wide-web, please send an email * to modules@quadra-informatique.fr so we can send you a copy immediately. * * @author Quadra Informatique <modules@quadra-informatique.fr> * @copyright 1997-2016 Quadra Informatique * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ $(document).ready(function () { $('#reset_table').click(function (e) { $('#loading').show(); e.preventDefault(); var ajax_url = $('#reset_table').attr('href'); $.ajax({ type: 'POST', async: true, dataType: "json", url: ajax_url, data: { ajax: "1", tab: "AdminManageAxeptaConf", action: 'updateTables', operation: 'reset_tables' }, success: function (jsonData) { $('#loading').hide(); if (jsonData && jsonData.answer && typeof jsonData.answer != undefined) { if (jsonData.msg.length) showSuccessMessage(jsonData.msg); } }, error: function (XMLHttpRequest, textStatus, errorThrown) { alert('TECHNICAL ERROR\nDetails:\nError thrown: ' + errorThrown + '\n' + 'Text status: ' + textStatus); $('#loading').hide(); } }); }); $('#update_table').click(function (e) { e.preventDefault(); var ajax_url = $('#update_table').attr('href'); $.ajax({ type: 'POST', async: true, dataType: "json", url: ajax_url, data: { ajax: "1", tab: "AdminManageAxeptaConf", action: 'updateTables', operation: 'update_tables' }, success: function (jsonData) { if (jsonData && jsonData.answer && typeof jsonData.answer != 'undefined') { if (jsonData.msg.length) { if (jsonData.answer) { showSuccessMessage(jsonData.msg); if (typeof jsonData.xml_version != 'undefined') { $('#AXEPTA_XML_VERSION').val(jsonData.xml_version); } } else { showErrorMessage(jsonData.msg); } } } $('#updateXML').remove(); $('button[onclick="updateXML(this);"]').show(); }, error: function (XMLHttpRequest, textStatus, errorThrown) { alert('TECHNICAL ERROR\nDetails:\nError thrown: ' + errorThrown + '\n' + 'Text status: ' + textStatus); $('#updateXML').remove(); $('button[onclick="updateXML(this);"]').show(); } }); }); $('#downloadDebugFile').click(function () { let url = $(this).data('url'); let action = $(this).data('action'); let key = $('#debug_file_key').val(); location.href = url + '&action=' + action + '&key=' + key; }); if ($("#capture_method").children("option:selected").val() == '1') { $("#capture_hour").parent('div').hide(); $("#capture_hour").parent('div').parent().hide(); } else { $("#capture_hour").parent('div').parent().show(); $("#capture_hour").parent('div').show(); } $('#capture_method').change(function () { if ($("#capture_method").children("option:selected").val() == '1') { $("#capture_hour").parent('div').parent().hide(); $("#capture_hour").parent('div').hide(); } else { $("#capture_hour").parent('div').parent().show(); $("#capture_hour").parent('div').show(); } }); $("#configuration_form").appendTo("#content"); if ($("#axepta_type option:selected").val() == 1) { $('#axepta_periodicity').attr('disabled', 'disabled'); $('#axepta_number_occurrences').attr('disabled', 'disabled'); $('#axepta_recurring_amount').attr('disabled', 'disabled'); } else { $('#axepta_periodicity').removeAttr('disabled'); $('#axepta_number_occurrences').removeAttr('disabled'); $('#axepta_recurring_amount').removeAttr('disabled'); } ; $('#axepta_type').change(function () { if ($("#axepta_type option:selected").val() == 1) { $('#axepta_periodicity').attr('disabled', 'disabled'); $('#axepta_number_occurrences').attr('disabled', 'disabled'); $('#axepta_recurring_amount').attr('disabled', 'disabled'); } else { $('#axepta_periodicity').removeAttr('disabled'); $('#axepta_number_occurrences').removeAttr('disabled'); $('#axepta_recurring_amount').removeAttr('disabled'); } ; }); if ($('#desc-order-partial_refund').lenght != 0 && typeof refundLabel !== 'undefined') { var content = '<i class="icon-exchange"></i> ' + refundLabel; $('#desc-order-partial_refund').html(content); } });
💾 保存文件
← 返回文件管理器