// Removing "console.log()"

This commit is contained in:
mDeflotte committed 2012-02-03 08:25:04 +00:00
1 parent 96c6f90030
commit b0db255ffd
2 files changed
+7 -11

No files matched your search

@@ -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({