Fix bug where images with numbers in their url were not displayed

This commit is contained in:
Nathan Gray 2013-07-08 19:40:17 +00:00
parent 388b0816b7
commit 55dc847f95

View File

@ -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);