Author: eallen Date: 2011-03-08 21:57:46 +0000 (Tue, 08 Mar 2011) New Revision: 4587
Modified: trunk/cumin/python/cumin/grid/dashboard.strings trunk/cumin/resources/app.js Log: Moved a javascript function to a more general place
Modified: trunk/cumin/python/cumin/grid/dashboard.strings =================================================================== --- trunk/cumin/python/cumin/grid/dashboard.strings 2011-03-08 21:50:11 UTC (rev 4586) +++ trunk/cumin/python/cumin/grid/dashboard.strings 2011-03-08 21:57:46 UTC (rev 4587) @@ -208,26 +208,7 @@ <h3>{title}</h3> {stats} </div> -<script type="text/javascript"> -//<![CDATA[ -function showHistoryChart(title, src) {
- if (src != '') { - new StickyWin.Modal.Ajax({ - url: src, - wrapWithUi: true, - caption: title, - useIframeShim: false, - allowMultiple: false, - closeOnEsc: true, - uiOptions: {width: 420} - }).update(); - } - return false; -} -//]]> -</script> - [NegotiatorStatSet.item_html] <tr title="{html_title}" class="item"> <th><span class="{chart_class}" onclick="showHistoryChart('{item_title}', '{chart_href}')" title="{span_title}"></span>{item_title}</th>
Modified: trunk/cumin/resources/app.js =================================================================== --- trunk/cumin/resources/app.js 2011-03-08 21:50:11 UTC (rev 4586) +++ trunk/cumin/resources/app.js 2011-03-08 21:57:46 UTC (rev 4587) @@ -523,3 +523,19 @@ function ofc_debug(msg) { wooly.log(msg); } + +function showHistoryChart(title, src) { + + if (src != '') { + new StickyWin.Modal.Ajax({ + url: src, + wrapWithUi: true, + caption: title, + useIframeShim: false, + allowMultiple: false, + closeOnEsc: true, + uiOptions: {width: 420} + }).update(); + } + return false; +}
cumin-developers@lists.fedorahosted.org