From 22b4d695705c5cf056abfaf345498ff8f28f6b30 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 27 Apr 2016 23:02:01 +0300 Subject: [PATCH] one step back --- .../forms/config/forms.client.routes.js | 18 +++++------ .../configure-form.client.directive.js | 6 ++-- .../directives/edit-form.client.directive.js | 6 ++-- .../edit-submissions-form.client.directive.js | 6 ++-- .../submit-form.client.directive.js | 6 ++-- .../users/config/users.client.routes.js | 30 +++++++++---------- 6 files changed, 36 insertions(+), 36 deletions(-) diff --git a/public/modules/forms/config/forms.client.routes.js b/public/modules/forms/config/forms.client.routes.js index 0e0a1d21..0729a3f9 100644 --- a/public/modules/forms/config/forms.client.routes.js +++ b/public/modules/forms/config/forms.client.routes.js @@ -2,18 +2,18 @@ // Setting up route angular.module('forms').config([ - '$stateProvider', '$templateCache', + '$stateProvider', - function($stateProvider, $templateCache) { + function($stateProvider) { // Forms state routing $stateProvider. state('listForms', { url: '/forms', - template: $templateCache.get('modules/forms/views/list-forms.client.view.html') + templateUrl: 'modules/forms/views/list-forms.client.view.html' }). state('submitForm', { url: '/forms/:formId', - template: $templateCache.get('modules/forms/views/submit-form.client.view.html'), + templateUrl: 'modules/forms/views/submit-form.client.view.html', data: { hideNav: true, }, @@ -27,7 +27,7 @@ angular.module('forms').config([ controllerAs: 'ctrl' }).state('viewForm', { url: '/forms/:formId/admin', - template: $templateCache.get('modules/forms/views/admin-form.client.view.html'), + templateUrl: 'modules/forms/views/admin-form.client.view.html', data: { permissions: [ 'editForm' ] }, @@ -40,16 +40,16 @@ angular.module('forms').config([ controller: 'AdminFormController' }).state('viewForm.configure', { url: '/configure', - template: $templateCache.get('modules/forms/views/adminTabs/configure.html') + templateUrl: 'modules/forms/views/adminTabs/configure.html' }).state('viewForm.design', { url: '/design', - template: $templateCache.get('modules/forms/views/adminTabs/design.html') + templateUrl: 'modules/forms/views/adminTabs/design.html' }).state('viewForm.analyze', { url: '/analyze', - template: $templateCache.get('modules/forms/views/adminTabs/analyze.html') + templateUrl: 'modules/forms/views/adminTabs/analyze.html' }).state('viewForm.create', { url: '/create', - template: $templateCache.get('modules/forms/views/adminTabs/create.html') + templateUrl: 'modules/forms/views/adminTabs/create.html' }); } ]); diff --git a/public/modules/forms/directives/configure-form.client.directive.js b/public/modules/forms/directives/configure-form.client.directive.js index 224cfb49..936ed5f0 100644 --- a/public/modules/forms/directives/configure-form.client.directive.js +++ b/public/modules/forms/directives/configure-form.client.directive.js @@ -1,10 +1,10 @@ 'use strict'; angular.module('forms').directive('configureFormDirective', [ - '$rootScope', '$http', 'Upload', 'CurrentForm', '$templateCache', - function ($rootScope, $http, Upload, CurrentForm, $templateCache) { + '$rootScope', '$http', 'Upload', 'CurrentForm', + function ($rootScope, $http, Upload, CurrentForm) { return { - template: $templateCache.get('modules/forms/views/directiveViews/form/configure-form.client.view.html'), + templateUrl: 'modules/forms/views/directiveViews/form/configure-form.client.view.html', restrict: 'E', scope: { myform:'=', diff --git a/public/modules/forms/directives/edit-form.client.directive.js b/public/modules/forms/directives/edit-form.client.directive.js index ec2fbef7..74c20c06 100644 --- a/public/modules/forms/directives/edit-form.client.directive.js +++ b/public/modules/forms/directives/edit-form.client.directive.js @@ -1,10 +1,10 @@ 'use strict'; angular.module('forms').directive('editFormDirective', [ - '$rootScope', 'FormFields', '$templateCache', - function ($rootScope, FormFields, $templateCache) { + '$rootScope', 'FormFields', + function ($rootScope, FormFields) { return { - template: $templateCache.get('modules/forms/views/directiveViews/form/edit-form.client.view.html'), + templateUrl: 'modules/forms/views/directiveViews/form/edit-form.client.view.html', restrict: 'E', scope: { myform:'=', diff --git a/public/modules/forms/directives/edit-submissions-form.client.directive.js b/public/modules/forms/directives/edit-submissions-form.client.directive.js index 342a3bb3..e8bb87e6 100644 --- a/public/modules/forms/directives/edit-submissions-form.client.directive.js +++ b/public/modules/forms/directives/edit-submissions-form.client.directive.js @@ -1,10 +1,10 @@ 'use strict'; angular.module('forms').directive('editSubmissionsFormDirective', [ - '$rootScope', '$http', '$templateCache', - function ($rootScope, $http, $templateCache) { + '$rootScope', '$http', + function ($rootScope, $http) { return { - template: $templateCache.get('modules/forms/views/directiveViews/form/edit-submissions-form.client.view.html'), + templateUrl: 'modules/forms/views/directiveViews/form/edit-submissions-form.client.view.html', restrict: 'E', scope: { myform:'=', diff --git a/public/modules/forms/directives/submit-form.client.directive.js b/public/modules/forms/directives/submit-form.client.directive.js index 270ead7e..55dfdafa 100644 --- a/public/modules/forms/directives/submit-form.client.directive.js +++ b/public/modules/forms/directives/submit-form.client.directive.js @@ -1,9 +1,9 @@ 'use strict'; -angular.module('forms').directive('submitFormDirective', ['$http', 'TimeCounter', '$filter', '$rootScope', 'Auth', '$templateCache', - function ($http, TimeCounter, $filter, $rootScope, Auth, $templateCache) { +angular.module('forms').directive('submitFormDirective', ['$http', 'TimeCounter', '$filter', '$rootScope', 'Auth', + function ($http, TimeCounter, $filter, $rootScope, Auth) { return { - template: $templateCache.get('modules/forms/views/directiveViews/form/submit-form.client.view.html'), + templateUrl: 'modules/forms/views/directiveViews/form/submit-form.client.view.html', restrict: 'E', scope: { myform:'=' diff --git a/public/modules/users/config/users.client.routes.js b/public/modules/users/config/users.client.routes.js index d45a00c7..bc3080d8 100755 --- a/public/modules/users/config/users.client.routes.js +++ b/public/modules/users/config/users.client.routes.js @@ -2,8 +2,8 @@ // Setting up route angular.module('users').config([ - '$stateProvider', '$templateCache', - function($stateProvider, $templateCache) { + '$stateProvider', + function($stateProvider) { var checkLoggedin = function($q, $timeout, $state, User, Auth) { var deferred = $q.defer(); @@ -35,64 +35,64 @@ angular.module('users').config([ loggedin: checkLoggedin }, url: '/settings/profile', - template: $templateCache.get('modules/users/views/settings/edit-profile.client.view.html') + templateUrl: 'modules/users/views/settings/edit-profile.client.view.html' }). state('password', { resolve: { loggedin: checkLoggedin }, url: '/settings/password', - template: $templateCache.get('modules/users/views/settings/change-password.client.view.html') + templateUrl: 'modules/users/views/settings/change-password.client.view.html' }). state('accounts', { resolve: { loggedin: checkLoggedin }, url: '/settings/accounts', - template: $templateCache.get('modules/users/views/settings/social-accounts.client.view.html') + templateUrl: 'modules/users/views/settings/social-accounts.client.view.html' }). state('signup', { url: '/signup', - template: $templateCache.get('modules/users/views/authentication/signup.client.view.html') + templateUrl: 'modules/users/views/authentication/signup.client.view.html' }). state('signup-success', { url: '/signup-success', - template: $templateCache.get('modules/users/views/authentication/signup-success.client.view.html') + templateUrl: 'modules/users/views/authentication/signup-success.client.view.html' }). state('signin', { url: '/signin', - template: $templateCache.get('modules/users/views/authentication/signin.client.view.html') + templateUrl: 'modules/users/views/authentication/signin.client.view.html' }). state('access_denied', { url: '/access_denied', - template: $templateCache.get('modules/users/views/authentication/access-denied.client.view.html') + templateUrl: 'modules/users/views/authentication/access-denied.client.view.html' }). state('resendVerifyEmail', { url: '/verify', - template: $templateCache.get('modules/users/views/verify/resend-verify-email.client.view.html') + templateUrl: 'modules/users/views/verify/resend-verify-email.client.view.html' }). state('verify', { url: '/verify/:token', - template: $templateCache.get('modules/users/views/verify/verify-account.client.view.html') + templateUrl: 'modules/users/views/verify/verify-account.client.view.html' }). state('forgot', { url: '/password/forgot', - template: $templateCache.get('modules/users/views/password/forgot-password.client.view.html') + templateUrl: 'modules/users/views/password/forgot-password.client.view.html' }). state('reset-invalid', { url: '/password/reset/invalid', - template: $templateCache.get('modules/users/views/password/reset-password-invalid.client.view.html') + templateUrl: 'modules/users/views/password/reset-password-invalid.client.view.html' }). state('reset-success', { url: '/password/reset/success', - template: $templateCache.get('modules/users/views/password/reset-password-success.client.view.html') + templateUrl: 'modules/users/views/password/reset-password-success.client.view.html' }). state('reset', { url: '/password/reset/:token', - template: $templateCache.get('modules/users/views/password/reset-password.client.view.html') + templateUrl: 'modules/users/views/password/reset-password.client.view.html' }); } ]);