Skip to content

Commit

Permalink
Fix modal paths (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatiasComercio authored Feb 2, 2017
1 parent 68ea41d commit 016baba
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/scripts/controllers/modals/DeleteCourseController.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ define(['paw', 'services/modalFactory'], function(paw) {
paw.controller('DeleteCourseController',
['modalFactory', '$log',
function (modalFactory, $log) {
var modalTemplateUrl = '/views/modals/delete_course.html';
var modalTemplateUrl = 'views/modals/delete_course.html';
var onSuccess = function(url) {
$log.info('POST ' + url);
};
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/controllers/modals/DeleteUserController.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ define(['paw', 'services/modalFactory'], function(paw) {
paw.controller('DeleteUserController',
['modalFactory', '$log',
function (modalFactory, $log) {
var modalTemplateUrl = '/views/modals/delete_user.html';
var modalTemplateUrl = 'views/modals/delete_user.html';
var onSuccess = function(url) {
$log.info('POST ' + url);
};
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/controllers/modals/InscriptionsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ define(['paw', 'services/modalFactory', 'services/navDataService'], function(paw
paw.controller('InscriptionsController',
['modalFactory', '$log', 'navDataService',
function (modalFactory, $log, navDataService) {
var modalTemplateUrl = '/views/modals/inscriptions.html';
var modalTemplateUrl = 'views/modals/inscriptions.html';
var onSuccess = function(url) {
navDataService.set('inscriptionsEnabled', !navDataService.get('inscriptionsEnabled'));
$log.info('POST ' + url + ' {enable: ' + navDataService.get('inscriptionsEnabled') + '}');
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/controllers/modals/ResetPasswordController.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ define(['paw', 'services/modalFactory'], function(paw) {
paw.controller('ResetPasswordController',
['modalFactory', '$log',
function (modalFactory, $log) {
var modalTemplateUrl = '/views/modals/reset_password.html';
var modalTemplateUrl = 'views/modals/reset_password.html';
var onSuccess = function(url) {
$log.info('POST ' + url);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function() {
});

describe('and it is expected that', function() {
var modalTemplateUrl = '/views/modals/delete_course.html';
var modalTemplateUrl = 'views/modals/delete_course.html';
var args;

beforeEach(function() {
Expand Down
2 changes: 1 addition & 1 deletion app/specs/controllers/modals/DeleteUserController.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function() {
});

describe('and it is expected that', function() {
var modalTemplateUrl = '/views/modals/delete_user.html';
var modalTemplateUrl = 'views/modals/delete_user.html';
var args;

beforeEach(function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function() {
});

describe('and it is expected that', function() {
var modalTemplateUrl = '/views/modals/inscriptions.html';
var modalTemplateUrl = 'views/modals/inscriptions.html';
var args;

beforeEach(function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function() {
});

describe('and it is expected that', function() {
var modalTemplateUrl = '/views/modals/reset_password.html';
var modalTemplateUrl = 'views/modals/reset_password.html';
var args;

beforeEach(function() {
Expand Down

0 comments on commit 016baba

Please sign in to comment.