// Removing "console.log()"

This commit is contained in:
mDeflotte
2012-02-03 08:25:04 +00:00
parent 96c6f90030
commit b0db255ffd
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">