From 55dc847f95669b300bd0fc24691cca373f9ced93 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 8 Jul 2013 19:40:17 +0000 Subject: [PATCH] Fix bug where images with numbers in their url were not displayed --- etemplate/js/et2_widget_button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_button.js b/etemplate/js/et2_widget_button.js index b19055071e..8554580733 100644 --- a/etemplate/js/et2_widget_button.js +++ b/etemplate/js/et2_widget_button.js @@ -127,7 +127,7 @@ var et2_button = et2_baseWidget.extend([et2_IInput, et2_IDetachedDOM], _image = this.options.readonly ? this.options.ro_image : this.options.image; // Silently blank for percentages instead of warning about missing image - use a progress widget - if(_image.match(/[0-9]+\%/)) + if(_image.match(/^[0-9]+\%$/)) { _image = ""; //this.egw().debug("warn", "Use a progress widget instead of percentage images", this);