Skip to content
Permalink
Browse files

Fix style and grammar issues

  • Loading branch information...
cydrobolt committed Mar 29, 2018
1 parent f3b9f09 commit b29c5d51a92d44a712f300dd9c3e13e0a0945628
Showing with 5 additions and 5 deletions.
  1. +5 −5 public/js/AdminCtrl.js
@@ -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) {
@@ -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) {

0 comments on commit b29c5d5

Please sign in to comment.
You can’t perform that action at this time.