// BO : cart rules form improved
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10290 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -298,3 +298,32 @@ $('#customerFilter')
|
||||
$('#id_customer').val(data.id_customer);
|
||||
$('#customerFilter').val(data.cname + ' (' + data.email + ')');
|
||||
});
|
||||
|
||||
function displayCartRuleTab(tab)
|
||||
{
|
||||
$('.cart_rule_tab').hide();
|
||||
$('.tab-page').removeClass('selected');
|
||||
$('#cart_rule_' + tab).show();
|
||||
$('#cart_rule_link_' + tab).addClass('selected');
|
||||
}
|
||||
|
||||
$('.cart_rule_tab').hide();
|
||||
$('.tab-page').removeClass('selected');
|
||||
$('#cart_rule_informations').show();
|
||||
$('#cart_rule_link_informations').addClass('selected');
|
||||
|
||||
var date = new Date();
|
||||
var hours = date.getHours();
|
||||
if (hours < 10)
|
||||
hours = "0" + hours;
|
||||
var mins = date.getMinutes();
|
||||
if (mins < 10)
|
||||
mins = "0" + mins;
|
||||
var secs = date.getSeconds();
|
||||
if (secs < 10)
|
||||
secs = "0" + secs;
|
||||
$('.datepicker').datepicker({
|
||||
prevText: '',
|
||||
nextText: '',
|
||||
dateFormat: 'yy-mm-dd ' + hours + ':' + mins + ':' + secs
|
||||
});
|
||||
Reference in New Issue
Block a user