Author: croberts
Date: 2011-11-21 21:18:18 +0000 (Mon, 21 Nov 2011)
New Revision: 5144
Modified:
branches/noflash/cumin/resources/app.js
Log:
Fixing the time-series chart popup so that the chart gets drawn after the ajax fetch for
StickWin. We are now overriding the default handleResponse function for StickyWin.
Essentially, we are using the original code, but now we are adding a call to
drawAllCharts() after the content is fetched and displayed.
Modified: branches/noflash/cumin/resources/app.js
===================================================================
--- branches/noflash/cumin/resources/app.js 2011-11-21 20:11:08 UTC (rev 5143)
+++ branches/noflash/cumin/resources/app.js 2011-11-21 21:18:18 UTC (rev 5144)
@@ -408,11 +408,20 @@
useIframeShim: false,
allowMultiple: false,
closeOnEsc: true,
- uiOptions: {width: 420},
+ uiOptions: {width: 450},
edge: false,
position: 'center',
offset: {x:0,y:0},
- relativeTo: document.body
+ relativeTo: document.body,
+ handleResponse: function(response){
+ var responseScript = "";
+ this.Request.response.text.stripScripts(function(script){ responseScript += script;
});
+ if (this.options.wrapWithUi) response = StickyWin.ui(this.options.caption, response,
this.options.uiOptions);
+ this.setContent(response);
+ this.show();
+ if (this.evalScripts) $exec(responseScript);
+ drawAllCharts();
+ }
}).update();
}
return false;
Show replies by date