// 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:
mDeflotte
2012-02-03 08:25:04 +00:00
parent 2151238e24
commit 6394d95fcc
2 changed files with 7 additions and 11 deletions
@@ -202,15 +202,14 @@
$(document).ready(function() {
$( "#sortable_module_authorize_list, #sortable_module_unauthorize_list" ).sortable({
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')
$(event.toElement).children('input["type=hidden"]').attr('name', 'modulesBoxAuth[]');
else
$(event.toElement).children('input["type=hidden"]').attr('name', 'modulesBoxUnauth[]');
}
}).disableSelection();
if ($(event.toElement).parent('ul').attr('id') == 'sortable_module_authorize_list')
$(event.toElement).children('input["type=hidden"]').attr('name', 'modulesBoxAuth[]');
else
$(event.toElement).children('input["type=hidden"]').attr('name', 'modulesBoxUnauth[]');
}
}).disableSelection();
});
</script>
<table cellspacing="0" cellpadding="0" class="table" style="width:600px">
@@ -31,7 +31,6 @@ $('document').ready(function(){
});
$('#sendEmail').click(function(){
//console.log('aaa');
var datas = [];
$('#fancybox-content').find('input').each(function(index){
var o = {}
@@ -40,8 +39,6 @@ $('document').ready(function(){
if (o.value != '')
datas.push(o);
});
//console.log(datas.length);
//console.log(datas);
if (datas.length >= 3)
{
$.ajax({