Skip to content

Commit

Permalink
Fix style and grammar issues
Browse files Browse the repository at this point in the history
  • Loading branch information
cydrobolt committed Mar 29, 2018
1 parent f3b9f09 commit b29c5d5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions public/js/AdminCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,9 @@ polr.controller('AdminCtrl', function($scope, $compile, $timeout) {

// Delete user
$scope.deleteUser = function($event, user_id) {
if(confirm("Are you sure to delete this user?")){
var el = $($event.target);
var delete_user_confirm = window.confirm('Are you sure you would like to delete this user?');

if (delete_user_confirm) {
apiCall('admin/delete_user', {
'user_id': user_id,
}, function(new_status) {
Expand Down Expand Up @@ -310,9 +310,9 @@ polr.controller('AdminCtrl', function($scope, $compile, $timeout) {

// Delete link
$scope.deleteLink = function($event, link_ending) {
if(confirm("Are you sure to delete this link?")){
var el = $($event.target);
var delete_link_confirm = window.confirm('Are you sure you would like to delete this link?');

if (delete_link_confirm) {
apiCall('admin/delete_link', {
'link_ending': link_ending,
}, function(new_status) {
Expand Down

0 comments on commit b29c5d5

Please sign in to comment.