diff options
author | Chaoyi Zha <summermontreal@gmail.com> | 2017-05-06 19:36:17 +0300 |
---|---|---|
committer | Chaoyi Zha <summermontreal@gmail.com> | 2017-05-06 19:36:17 +0300 |
commit | 39ed9e23c3e2e5d3fff4673657a24661e2b73601 (patch) | |
tree | ee3e5f8efb1cd3a8b905b84c209b412cbcae9d2f | |
parent | b4e7c49932b19e879b46e9206be37f71b6fd4ada (diff) |
Remove comments, fix typo
-rw-r--r-- | app/Http/Controllers/AdminPaginationController.php | 2 | ||||
-rw-r--r-- | app/Http/Controllers/AjaxController.php | 2 | ||||
-rw-r--r-- | public/js/AdminCtrl.js | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/app/Http/Controllers/AdminPaginationController.php b/app/Http/Controllers/AdminPaginationController.php index 78e290d..01297ab 100644 --- a/app/Http/Controllers/AdminPaginationController.php +++ b/app/Http/Controllers/AdminPaginationController.php @@ -160,7 +160,7 @@ class AdminPaginationController extends Controller { return Datatables::of($user_links) ->editColumn('clicks', [$this, 'renderClicksCell']) - ->editColumn('long_url', [$this, 'renderLongUrlCell']) // TODO make sure users can't edit other people's links! + ->editColumn('long_url', [$this, 'renderLongUrlCell']) ->escapeColumns(['short_url']) ->make(true); } diff --git a/app/Http/Controllers/AjaxController.php b/app/Http/Controllers/AjaxController.php index b8f5a4e..a57fe14 100644 --- a/app/Http/Controllers/AjaxController.php +++ b/app/Http/Controllers/AjaxController.php @@ -235,7 +235,7 @@ class AjaxController extends Controller { $link_ending = $request->input('link_ending'); $link = LinkHelper::linkExists($link_ending); - $new_long_url = $request->input('new_long_url'); // TODO check if valid + $new_long_url = $request->input('new_long_url'); $this->validate($request, [ 'new_long_url' => 'required|url', diff --git a/public/js/AdminCtrl.js b/public/js/AdminCtrl.js index ac44308..274e7d9 100644 --- a/public/js/AdminCtrl.js +++ b/public/js/AdminCtrl.js @@ -260,7 +260,7 @@ polr.controller('AdminCtrl', function($scope, $compile, $timeout) { 'user_email': $scope.newUserParams.userEmail, 'user_role': $scope.newUserParams.userRole, }, function(result) { - toastr.success("User " + username + " successfully created.", "Success"); + toastr.success("User " + $scope.newUserParams.username + " successfully created.", "Success"); $('#new-user-form').clearForm(); $scope.datatables['admin_users_table'].ajax.reload(); }, function () { |