Parse to int
[mkdru-moved-to-drupal.org.git] / mkdru.theme.js
index b3d1cda..0948291 100644 (file)
@@ -233,7 +233,7 @@ Drupal.theme.prototype.mkdruCounts = function(first, last, available, total) {
 };
 
 Drupal.theme.prototype.mkdruStatus = function(activeClients, clients) {
-  if (activeClients < 1) {
+  if (Number(activeClients) < 1) {
     jQuery('a[href="#addon-0-result"]').removeClass('spinning');  
   }
   return Drupal.t('Waiting on ') + activeClients + Drupal.t(' out of ')