diff --git a/static/js/directives/contactsmanager.js b/static/js/directives/contactsmanager.js index 6f9ef23c..18b26d43 100644 --- a/static/js/directives/contactsmanager.js +++ b/static/js/directives/contactsmanager.js @@ -18,7 +18,7 @@ * along with this program. If not, see . * */ -define(['jquery', 'underscore', 'text!partials/contactsmanagerbutton.html', 'text!partials/contactsmanager.html', 'text!partials/contactsmanageradd.html', 'text!partials/contactsmanageredit.html'], function($, _, templateContactsManagerButton, templateContactsManager, templateContactsManagerAdd, templateContactsManagerEdit) { +define(['jquery', 'underscore', 'text!partials/contactsmanagerbutton.html', 'text!partials/contactsmanager.html'], function($, _, templateContactsManagerButton, templateContactsManager) { return ['contacts', 'alertify', function(contacts, alertify) { @@ -51,24 +51,6 @@ define(['jquery', 'underscore', 'text!partials/contactsmanagerbutton.html', 'tex 'controller': modalController }); }; - $scope.contactsManagerAdd = function() { - alertify.dialog.buildCustom({ - 'windowClass': windowClass, - 'header': _('Find new contacts'), - 'bodydom': templateContactsManagerAdd, - 'footerdom': null, - 'controller': modalController - }); - }; - $scope.contactsManagerEdit = function() { - alertify.dialog.buildCustom({ - 'windowClass': windowClass, - 'header': _('Edit contact'), - 'bodydom': templateContactsManagerEdit, - 'footerdom': null, - 'controller': modalController - }); - }; }]; var link = function($scope, $element) {}; diff --git a/static/partials/contactsmanager.html b/static/partials/contactsmanager.html index 97c97555..1c36d252 100644 --- a/static/partials/contactsmanager.html +++ b/static/partials/contactsmanager.html @@ -1,16 +1,10 @@