[#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 {

View File

@@ -1,5 +1,5 @@
li(ng-repeat='message in group.chat', ng-class='{highlight: message.text.indexOf(username(user.auth,user.profile.name)) != -1}')
a.label.chat-message(class='{{nameTagClasses(message)}}', tooltip='{{message.contributor}}', ng-click='clickMember(message.uuid)')
a.label.chat-message(class='{{nameTagClasses(message)}}', tooltip='{{message.contributor}}', ng-click='clickMember(message.uuid, true)')
| {{message.user}}
span
span(ng-bind-html="message.text | linky:'_blank'") -

View File

@@ -24,7 +24,7 @@
.achievement.achievement-firefox(ng-show='profile.backer.contributor')
div(ng-class='{muted: !profile.backer.contributor}')
h5
span.label(ng-if='profile.backer.contributor', ng-class='nameTagClasses(profile.backer.contributor)') {{profile.backer.contributor}}
span.label.label-inverse(ng-if='profile.backer.contributor') {{profile.backer.contributor}}
span.label(ng-if='!profile.backer.contributor') Contributor
small.
Has contributed to HabitRPG (code, design, pixel art, legal advice, docs, etc). Want this badge? Fix a bug :)