From 08491ab54fb69d20a3977d029a573e419111d581 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Fri, 26 Dec 2014 21:34:33 -0800 Subject: [PATCH] GUAC-894: Remove unused modal plugin. --- guacamole/src/main/webapp/app/manage/manageModule.js | 2 +- guacamole/src/main/webapp/lib/plugins/modal.min.js | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) delete mode 100644 guacamole/src/main/webapp/lib/plugins/modal.min.js diff --git a/guacamole/src/main/webapp/app/manage/manageModule.js b/guacamole/src/main/webapp/app/manage/manageModule.js index 2a16f479c..7b392a9dc 100644 --- a/guacamole/src/main/webapp/app/manage/manageModule.js +++ b/guacamole/src/main/webapp/app/manage/manageModule.js @@ -23,5 +23,5 @@ /** * The module for the administration functionality. */ -angular.module('manage', ['btford.modal', 'groupList', 'locale', 'rest']); +angular.module('manage', ['groupList', 'locale', 'rest']); diff --git a/guacamole/src/main/webapp/lib/plugins/modal.min.js b/guacamole/src/main/webapp/lib/plugins/modal.min.js deleted file mode 100644 index b357950a2..000000000 --- a/guacamole/src/main/webapp/lib/plugins/modal.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/* - * @license - * angular-modal v0.4.0 - * (c) 2013 Brian Ford http://briantford.com - * License: MIT - */ -"use strict";angular.module("btford.modal",[]).factory("btfModal",["$animate","$compile","$rootScope","$controller","$q","$http","$templateCache",function(e,t,r,n,o,a,l){return function(c){function i(e){return p.then(function(t){$||u(t,e)})}function u(o,a){if($=angular.element(o),0===$.length)throw new Error("The template contains no elements; you need to wrap text nodes");if(e.enter($,h),d=r.$new(),a)for(var l in a)d[l]=a[l];var c=n(s,{$scope:d});v&&(d[v]=c),t($)(d)}function m(){var t=o.defer();return $?e.leave($,function(){d.$destroy(),$=null,t.resolve()}):t.resolve(),t.promise}function f(){return!!$}if(!(!c.template^!c.templateUrl))throw new Error("Expected modal to have exacly one of either `template` or `templateUrl`");var p,d,s=(c.template,c.controller||angular.noop),v=c.controllerAs,h=angular.element(c.container||document.body),$=null;if(c.template){var g=o.defer();g.resolve(c.template),p=g.promise}else p=a.get(c.templateUrl,{cache:l}).then(function(e){return e.data});return{activate:i,deactivate:m,active:f}}}]); \ No newline at end of file