From 720d3b7c77cb55f5758bdc4eee93c9fc32efe4da Mon Sep 17 00:00:00 2001 From: Aleksandr Vladymyrov Date: Thu, 26 Sep 2013 12:11:22 +0300 Subject: [PATCH] Removed JS for the module "Menu" that does not exist in the default installation --- .../modules/menu/scripts/management/index.js | 43 ------------------- 1 file changed, 43 deletions(-) delete mode 100644 public/modules/menu/scripts/management/index.js diff --git a/public/modules/menu/scripts/management/index.js b/public/modules/menu/scripts/management/index.js deleted file mode 100644 index 3811600..0000000 --- a/public/modules/menu/scripts/management/index.js +++ /dev/null @@ -1,43 +0,0 @@ -/** - * - * @author Alexander Khaylo - * @copyright Copyright (c) 2012 NIX Solutions (http://www.nixsolutions.com) - */ -$(function() { - - $('.grid-buttons').delegate('a#up-button', 'click', function(e) { - e.stopPropagation(); - var url = this.href, res = []; - $('#grid').find("input:checked").each(function() { - res.push(this.value); - }); - if(!res.length) { - alert('No row selected'); - } else if(res.length == 1) { - $.post(url, { id: res[0] }, function() { - $('#grid').data('plugin_grid').refresh(); - }); - } else { - alert('Many row selected'); - } - return false; - }); - - $('.grid-buttons').delegate('a#down-button', 'click', function(e) { - e.stopPropagation(); - var url = this.href, res = []; - $('#grid').find("input:checked").each(function() { - res.push(this.value); - }); - if(!res.length) { - alert('No row selected'); - } else if(res.length == 1) { - $.post(url, { id: res[0] }, function() { - $('#grid').data('plugin_grid').refresh(); - }); - } else { - alert('Many row selected'); - } - return false; - }); -});