Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Commit

Permalink
closes #14
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaker Islam committed May 8, 2014
1 parent ff1de6c commit 9393b43
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/scripts/directives/create-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,12 @@ angular.module('bulbsCmsApp')
}
$window.location.href = $window.location.origin + new_path;
}).error(function (data, status, headers, config) {
console.log('wow. error.');
$('button.go').html('<i class="fa fa-frown-o" style="color:red"></i> Error!');
if (status === 403) {
$('button.go')
.html('<i class="fa fa-frown-o" style="color:red"></i> Please Login');

This comment has been minimized.

Copy link
@shaqq

shaqq May 8, 2014

Contributor

I tried using Login.showLoginModal(), but for some reason I couldn't click on the input fields. Will have to look at this again later.

} else {
$('button.go').html('<i class="fa fa-frown-o" style="color:red"></i> Error!');
}
$scope.gotSave = false;
});
}
Expand Down

0 comments on commit 9393b43

Please sign in to comment.