From 32155ad666619f15020bc3a419d8ee1294af76d9 Mon Sep 17 00:00:00 2001
From: Coleman Watts <coleman@civicrm.org>
Date: Sat, 13 Jul 2013 12:08:59 -0700
Subject: [PATCH] js & css fix for CRM-12859

----------------------------------------
* CRM-12859: Manage Volunteer Assignments
  http://issues.civicrm.org/jira/browse/CRM-12859
---
 css/civicrm.css | 2 +-
 js/Common.js    | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/css/civicrm.css b/css/civicrm.css
index b64d791046..a883418e34 100644
--- a/css/civicrm.css
+++ b/css/civicrm.css
@@ -3409,7 +3409,7 @@ div.m ul#civicrm-menu,
 }
 
 /* table row highlightng */
-#crm-container table.row-highlight tr:hover {
+.crm-container table.row-highlight tr:hover {
   background-color: #FFFFCC !important;
 }
 #crm-container .civicrm-drupal-wysiwyg .collapsed {
diff --git a/js/Common.js b/js/Common.js
index 8b92642307..8f5294ef60 100644
--- a/js/Common.js
+++ b/js/Common.js
@@ -46,9 +46,9 @@ function ts(text, params) {
   text = CRM.strings[text] || text;
   if (typeof(params) === 'object') {
     for (var i in params) {
-      if (typeof(params[i]) === 'string') {
+      if (typeof(params[i]) === 'string' || typeof(params[i]) === 'number') {
         // sprintf emulation: escape % characters in the replacements to avoid conflicts
-        text = text.replace(new RegExp('%' + i, 'g'), params[i].replace(/%/g, '%-crmescaped-'));
+        text = text.replace(new RegExp('%' + i, 'g'), String(params[i]).replace(/%/g, '%-crmescaped-'));
       }
     }
     return text.replace(/%-crmescaped-/g, '%');
-- 
GitLab