Author: eallen
Date: 2009-04-30 09:53:19 -0400 (Thu, 30 Apr 2009)
New Revision: 3349
Modified:
mgmt/trunk/cumin/python/cumin/visualizations.strings
Log:
Fix javascript bug when making widget full page that was causing the browser to hang.
Modified: mgmt/trunk/cumin/python/cumin/visualizations.strings
===================================================================
--- mgmt/trunk/cumin/python/cumin/visualizations.strings 2009-04-29 19:59:11 UTC (rev
3348)
+++ mgmt/trunk/cumin/python/cumin/visualizations.strings 2009-04-30 13:53:19 UTC (rev
3349)
@@ -360,6 +360,8 @@
function get_max_zoom() {
// allow to zoom until each slot is at least 28px wide
+ if ((slot_map_info.size == 0) || (slot_zoom == 0))
+ return 1;
return Math.ceil(28 / (slot_map_info.size / slot_zoom));
}
Show replies by date