From 77278bcffc861517f5d43c01ad0410e4134abe33 Mon Sep 17 00:00:00 2001 From: Brandon McPhail Date: Wed, 8 Jan 2014 15:21:23 -0800 Subject: [PATCH 1/2] Fixed issue where only the first markdown link in a message would open in a new tab. Now all do. --- public/js/directives/directives.js | 4 ++-- views/options/social/chat-message.jade | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/js/directives/directives.js b/public/js/directives/directives.js index e550cff864..d469685b8a 100644 --- a/public/js/directives/directives.js +++ b/public/js/directives/directives.js @@ -105,7 +105,7 @@ habitrpg.directive('habitrpgSortable', ['User', function(User) { .replace(/'/g, '''); }; if (cap[0].charAt(0) !== '!') { - return ''; } else { - return ' Date: Wed, 8 Jan 2014 15:22:34 -0800 Subject: [PATCH 2/2] Rounded critical hit percentages in notifications, e.g. 149.999998% becomes 150% --- public/js/services/notificationServices.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/services/notificationServices.js b/public/js/services/notificationServices.js index 9bde458b10..d0646bfb0b 100644 --- a/public/js/services/notificationServices.js +++ b/public/js/services/notificationServices.js @@ -70,7 +70,7 @@ angular.module("notificationServices", []) growl(" " + sign(val) + " " + round(val) + " MP", 'mp'); }, crit: function(val) { - growl(" Critical Hit! Bonus: " + val + "%", 'crit'); + growl(" Critical Hit! Bonus: " + Math.round(val) + "%", 'crit'); } }; }