[#1465] allow clicking self for modal

This commit is contained in:
Tyler Renelle
2013-09-07 13:59:49 -04:00
parent b820417953
commit a960d310f7
3 changed files with 4 additions and 4 deletions

View File

@@ -15,8 +15,8 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Groups', '$http', 'A
// ------ Modals ------
$scope.clickMember = function(uid) {
if (User.user._id == uid) {
$scope.clickMember = function(uid, forceShow) {
if (User.user._id == uid && !forceShow) {
if ($location.path() == '/tasks') {
$location.path('/options');
} else {