Created
May 2, 2012 18:59
-
-
Save Vineeth-Mohan/2579254 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* @copyright 2009 - present by OpenGamma Inc | |
* @license See distribution for license | |
*/ | |
$.register_module({ | |
name: 'og.views.reports', | |
dependencies: ['og.views.common.state', 'og.views.common.layout', 'og.common.routes'], | |
obj: function () { | |
var api = og.api.rest, routes = og.common.routes, module = this, view, | |
layout = og.views.common.layout, masthead = og.common.masthead, | |
page_name = module.name.split('.').pop(), | |
check_state = og.views.common.state.check.partial('/' + page_name); | |
module.rules = {load: {route: '/', method: module.name + '.load'}}; | |
return view = { | |
load: function (args) { | |
masthead.menu.set_tab(page_name); | |
$('.ui-layout-center').html('<iframe id="temp_analytics_frame" src="/reports/"\ | |
style="position: absolute; top: 3px; height: 99%; width: 100%;"></iframe>'); | |
}, | |
init: function () {for (var rule in module.rules) routes.add(module.rules[rule]);}, | |
rules: module.rules | |
}; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment