// Removing "console.log()"
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12951 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -202,15 +202,14 @@
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$( "#sortable_module_authorize_list, #sortable_module_unauthorize_list" ).sortable({
|
$( "#sortable_module_authorize_list, #sortable_module_unauthorize_list" ).sortable({
|
||||||
connectWith: ".connectedSortable",
|
connectWith: ".connectedSortable",
|
||||||
stop: function(event, ui)
|
stop: function(event, ui)
|
||||||
{
|
{
|
||||||
console.log($(event.toElement).parent('ul').attr('id'));
|
if ($(event.toElement).parent('ul').attr('id') == 'sortable_module_authorize_list')
|
||||||
if ($(event.toElement).parent('ul').attr('id') == 'sortable_module_authorize_list')
|
$(event.toElement).children('input["type=hidden"]').attr('name', 'modulesBoxAuth[]');
|
||||||
$(event.toElement).children('input["type=hidden"]').attr('name', 'modulesBoxAuth[]');
|
else
|
||||||
else
|
$(event.toElement).children('input["type=hidden"]').attr('name', 'modulesBoxUnauth[]');
|
||||||
$(event.toElement).children('input["type=hidden"]').attr('name', 'modulesBoxUnauth[]');
|
}
|
||||||
}
|
}).disableSelection();
|
||||||
}).disableSelection();
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<table cellspacing="0" cellpadding="0" class="table" style="width:600px">
|
<table cellspacing="0" cellpadding="0" class="table" style="width:600px">
|
||||||
|
|||||||
@@ -31,7 +31,6 @@ $('document').ready(function(){
|
|||||||
});
|
});
|
||||||
|
|
||||||
$('#sendEmail').click(function(){
|
$('#sendEmail').click(function(){
|
||||||
//console.log('aaa');
|
|
||||||
var datas = [];
|
var datas = [];
|
||||||
$('#fancybox-content').find('input').each(function(index){
|
$('#fancybox-content').find('input').each(function(index){
|
||||||
var o = {}
|
var o = {}
|
||||||
@@ -40,8 +39,6 @@ $('document').ready(function(){
|
|||||||
if (o.value != '')
|
if (o.value != '')
|
||||||
datas.push(o);
|
datas.push(o);
|
||||||
});
|
});
|
||||||
//console.log(datas.length);
|
|
||||||
//console.log(datas);
|
|
||||||
if (datas.length >= 3)
|
if (datas.length >= 3)
|
||||||
{
|
{
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
|||||||
Reference in New Issue
Block a user