first commit
This commit is contained in:
9
modules/squaremeter_bckp/views/js/format.min.js
vendored
Normal file
9
modules/squaremeter_bckp/views/js/format.min.js
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* @license Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
IntegraXor Web SCADA - JavaScript Number Formatter
|
||||
http://www.integraxor.com/
|
||||
author: KPL, KHL
|
||||
(c)2011 ecava
|
||||
*/
|
||||
window.format=function(b,a){if(!b||isNaN(+a))return a;var a=b.charAt(0)=="-"?-a:+a,j=a<0?a=-a:0,e=b.match(/[^\d\-\+#]/g),h=e&&e[e.length-1]||".",e=e&&e[1]&&e[0]||",",b=b.split(h),a=a.toFixed(b[1]&&b[1].length),a=+a+"",d=b[1]&&b[1].lastIndexOf("0"),c=a.split(".");if(!c[1]||c[1]&&c[1].length<=d)a=(+a).toFixed(d+1);d=b[0].split(e);b[0]=d.join("");var f=b[0]&&b[0].indexOf("0");if(f>-1)for(;c[0].length<b[0].length-f;)c[0]="0"+c[0];else+c[0]==0&&(c[0]="");a=a.split(".");a[0]=c[0];if(c=d[1]&&d[d.length-
|
||||
1].length){for(var d=a[0],f="",k=d.length%c,g=0,i=d.length;g<i;g++)f+=d.charAt(g),!((g-k+1)%c)&&g<i-c&&(f+=e);a[0]=f}a[1]=b[1]&&a[1]?h+a[1]:"";return(j?"-":"")+a[0]+a[1]};
|
||||
29
modules/squaremeter_bckp/views/js/index.php
Normal file
29
modules/squaremeter_bckp/views/js/index.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2021 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This module is not a free module and all rights are reserved. It is prohibited to sell or redistribute this module for any purpose. Each license can be used only in one website. For multishop environment, a new license is required for each e-shop managed.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author MEG Venture <info@megventure.com>
|
||||
* @copyright 2007-2021 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
11008
modules/squaremeter_bckp/views/js/jquery-1.12.4.js
vendored
Normal file
11008
modules/squaremeter_bckp/views/js/jquery-1.12.4.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
18706
modules/squaremeter_bckp/views/js/jquery-ui.js
vendored
Normal file
18706
modules/squaremeter_bckp/views/js/jquery-ui.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
42
modules/squaremeter_bckp/views/js/jquery-ui.min.js
vendored
Normal file
42
modules/squaremeter_bckp/views/js/jquery-ui.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
15
modules/squaremeter_bckp/views/js/popup.js
Normal file
15
modules/squaremeter_bckp/views/js/popup.js
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* @license Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
*/
|
||||
|
||||
// show_popup : show the popup
|
||||
function show_popup(id) {
|
||||
// show the popup
|
||||
$('#' + id).show();
|
||||
}
|
||||
|
||||
// close_popup : close the popup
|
||||
function close_popup(id) {
|
||||
// hide the popup
|
||||
$('#' + id).hide();
|
||||
}
|
||||
1140
modules/squaremeter_bckp/views/js/product_admin.js
Normal file
1140
modules/squaremeter_bckp/views/js/product_admin.js
Normal file
File diff suppressed because it is too large
Load Diff
1140
modules/squaremeter_bckp/views/js/product_admin_e.js
Normal file
1140
modules/squaremeter_bckp/views/js/product_admin_e.js
Normal file
File diff suppressed because it is too large
Load Diff
51
modules/squaremeter_bckp/views/js/product_front_listing.js
Normal file
51
modules/squaremeter_bckp/views/js/product_front_listing.js
Normal file
@@ -0,0 +1,51 @@
|
||||
/**
|
||||
* @license Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
*/
|
||||
|
||||
function increaseValue(id, stepType) {
|
||||
if (stepType)
|
||||
s = Number(stepType);
|
||||
else
|
||||
s = Number(step);
|
||||
var value = parseFloat(document.getElementById(id).value, 10);
|
||||
value = value + s;
|
||||
if((value % 1 < 1) && (value % 1 != 0))
|
||||
document.getElementById(id).value = parseFloat(value).toFixed(2);
|
||||
else
|
||||
document.getElementById(id).value = parseFloat(value);
|
||||
}
|
||||
|
||||
function decreaseValue(id, stepType) {
|
||||
if (stepType)
|
||||
s = Number(stepType);
|
||||
else
|
||||
s = Number(step);
|
||||
var value = parseFloat(document.getElementById(id).value, 10);
|
||||
value = isNaN(value) ? 0 : value;
|
||||
value = value - s;
|
||||
if((value % 1 < 1) && (value % 1 != 0))
|
||||
document.getElementById(id).value = parseFloat(value).toFixed(2);
|
||||
else
|
||||
document.getElementById(id).value = parseFloat(value);
|
||||
}
|
||||
|
||||
function check_directinput(idProduct, min, max)
|
||||
{
|
||||
var qty_el_alt = document.getElementById('directinput_'+idProduct, min, max);
|
||||
|
||||
var qty_alt = Number(qty_el_alt.value);
|
||||
if (qty_alt<min)
|
||||
{
|
||||
qty_el_alt.value = Number(min);
|
||||
}
|
||||
else if (qty_alt>max)
|
||||
{
|
||||
qty_el_alt.value = Number(max);
|
||||
}
|
||||
else if (isNaN( qty_alt ))
|
||||
{
|
||||
qty_el_alt.value = Number(min);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user