fix: move `build directory to resources/shop`
This commit is contained in:
15
resources/shop/js/include/layout/animate.js
Normal file
15
resources/shop/js/include/layout/animate.js
Normal file
@@ -0,0 +1,15 @@
|
||||
function initAnimate()
|
||||
{
|
||||
/*
|
||||
var wew = new Wew({
|
||||
target: '.wow',
|
||||
keyword: 'wow',
|
||||
});
|
||||
|
||||
wew.init();
|
||||
*/
|
||||
wow = new WOW({animateClass: 'animated', live: true});
|
||||
wow.init();
|
||||
|
||||
}
|
||||
|
||||
9
resources/shop/js/include/layout/message.js
Normal file
9
resources/shop/js/include/layout/message.js
Normal file
@@ -0,0 +1,9 @@
|
||||
function errorMessage(message)
|
||||
{
|
||||
|
||||
var message = (typeof(message) != 'undefined') ? message : translate.getText.please_contact_the_administrator;
|
||||
if ( typeof(screenErrors) != 'undefined' ) {
|
||||
screenErrors.execute('error', translate.getText.an_error_occured+'.<br>'+message+'.');
|
||||
}
|
||||
}
|
||||
|
||||
37
resources/shop/js/include/layout/modal.js
Normal file
37
resources/shop/js/include/layout/modal.js
Normal file
@@ -0,0 +1,37 @@
|
||||
function openModal(title, route, params)
|
||||
{
|
||||
var params = (typeof(params) == 'undefined') ? [] : params;
|
||||
var message = (typeof(params['preload']) == 'undefined') ? '<p><i class="fa fa-spin fa-spinner"></i> Loading...</p>' : params['preload'];
|
||||
var callback_apply = (typeof(params['onApply']) == 'undefined') ? false : params['onApply'];
|
||||
var callback_open = (typeof(params['onOpen']) == 'undefined') ? false : params['onOpen'];
|
||||
|
||||
var dialog = bootbox.dialog({
|
||||
title: title,
|
||||
message: message,
|
||||
buttons: getModalButtons(callback_apply),
|
||||
callback: function() {
|
||||
if (callback_open) {
|
||||
callback_open();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
dialog.init(function(){
|
||||
dialog.find('.bootbox-body').load(route);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
function getModalButtons(callback) {
|
||||
return {
|
||||
ok: {
|
||||
label: "Apply",
|
||||
className: 'btn-info',
|
||||
callback: function() {
|
||||
if (typeof(callback) !== 'undefined') {
|
||||
callback();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
24
resources/shop/js/include/layout/scroll.js
Normal file
24
resources/shop/js/include/layout/scroll.js
Normal file
@@ -0,0 +1,24 @@
|
||||
function initScroll(selector)
|
||||
{
|
||||
if (typeof(selector) == 'undefined')
|
||||
{
|
||||
selector = ('.nicescrollable');
|
||||
}
|
||||
|
||||
$(selector).niceScroll({
|
||||
horizrailenabled: false,
|
||||
cursorborder: "0",
|
||||
cursorwidth: "8px",
|
||||
cursorcolor: "#fff",
|
||||
zindex: "5555",
|
||||
autohidemode: true,
|
||||
bouncescroll: true,
|
||||
mousescrollstep: 40,
|
||||
scrollspeed: 100,
|
||||
background: "#cdcdcd",
|
||||
cursoropacitymin: 0.3,
|
||||
cursoropacitymax: 0.7,
|
||||
cursorborderradius: 0,
|
||||
railpadding: {top:0,right:1,left:0,bottom:0}
|
||||
});
|
||||
}
|
||||
7
resources/shop/js/include/layout/tooltip.js
Normal file
7
resources/shop/js/include/layout/tooltip.js
Normal file
@@ -0,0 +1,7 @@
|
||||
function initTooltip()
|
||||
{
|
||||
$('[data-toggle="tooltip"]').tooltip({
|
||||
trigger : 'hover',
|
||||
delay: { "show": 500, "hide": 100 }
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user