From 73f294479393af401ae6c5e5e3f7fcbe64ff8cde Mon Sep 17 00:00:00 2001 From: Iglocska Date: Thu, 25 Jun 2015 14:23:27 +0200 Subject: [PATCH] Removed debug code --- app/webroot/js/ajaxification.js | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/app/webroot/js/ajaxification.js b/app/webroot/js/ajaxification.js index 72cd7dd03..c13dabe3b 100644 --- a/app/webroot/js/ajaxification.js +++ b/app/webroot/js/ajaxification.js @@ -53,7 +53,6 @@ function submitDeletion(context_id, action, type, id) { }, data: formData, success:function (data, textStatus) { - console.log(data); updateIndex(context_id, context); handleGenericAjaxResponse(data); }, @@ -357,34 +356,6 @@ function attributeListAnyProposalCheckBoxesChecked() { else $('.mass-proposal-select').hide(); } - -function deleteSelectedAttributes(event) { - var answer = confirm("Are you sure you want to delete all selected attributes?"); - if (answer) { - var selected = []; - $(".select_attribute").each(function() { - if ($(this).is(":checked")) { - var temp= $(this).data("id"); - selected.push(temp); - } - }); - $('#AttributeIds').attr('value', JSON.stringify(selected)); - var formData = $('#delete_selected').serialize(); - $.ajax({ - data: formData, - cache: false, - type:"POST", - url:"/attributes/deleteSelected/" + event, - success:function (data, textStatus) { - updateIndex(event, 'event'); - var result = handleGenericAjaxResponse(data); - if (result == true) eventUnpublish(); - }, - }); - } - return false; -} - function multiSelectAction(event, context) { var settings = { deleteAttributes: {