Skip to content

Instantly share code, notes, and snippets.

@pondmouse
pondmouse / og.views.fields.js
Last active December 19, 2015 08:38
Simple ajax call: og.views.fields.js
$.register_module({
name: 'og.views.fields',
dependencies: ['og.common.routes', 'og.common.masthead'],
obj: function () {
var module = this, masthead = og.common.masthead, page_name = module.name.split('.').pop(),
routes = og.common.routes, view;
module.rules = {load: {route: '/', method: module.name + '.load'}};
return view = {
check_state: og.views.common.state.check.partial('/'),
load: function (args) {
@pondmouse
pondmouse / og.views.fields.js
Last active December 19, 2015 08:38
New tab in UI workflow: og.views.fields.js
$.register_module({
name: 'og.views.fields',
dependencies: ['og.common.routes', 'og.common.masthead'],
obj: function () {
var module = this, masthead = og.common.masthead, page_name = module.name.split('.').pop(),
routes = og.common.routes, view;
module.rules = {load: {route: '/', method: module.name + '.load'}};
return view = {
check_state: og.views.common.state.check.partial('/'),
load: function (args) {
@pondmouse
pondmouse / og.views.common.layout.js
Last active December 19, 2015 08:38
New tab in UI workflow: og.views.common.layout.js
fields: function () {
return {
main: $('.OG-layout-fields-container').layout({
defaults: {
enableCursorHotkey: false, onresize_end: 'og.common.gadgets.manager.resize',
togglerLength_open: 0
},
north: {spacing_open: 0, paneClass: 'OG-layout-fields-masthead'},
center: {spacing_open: 0, paneClass: 'OG-layout-center'}
})
@pondmouse
pondmouse / fields.ftl
Last active December 19, 2015 08:38
New tab in UI workflow: fields.ftl
<#include "modules/common/og.common.header.ftl">
<title>OpenGamma</title>
${ogStyle.print('og_all.css', 'all',false)}
</head>
<body>
<div class="OG-layout-fields-container">
<div class="ui-layout-north">
<#include "modules/common/og.common.masthead.ftl">
</div>
<div class="ui-layout-center"></div>