.append("/proxy/savedmodel';") .append("}"); html.script().$type("text/javascript")._(script.toString())._(); if (!Boolean.valueOf($(LAST_SAVE_STATUS))) { html.div().$style("margin:20px 2px;")._(" ")._(); script.append("location.href='/proxy/").append($(APP_ID)) .append("';"); html.script().$type("text/javascript")._(script.toString())._(); "});\n"; html.script().$type("text/javascript")._(striptHead + striptBody)._();
"});\n"; html.script().$type("text/javascript")._(striptHead + striptBody)._();
.append("/proxy/savedmodel';") .append("}"); html.script().$type("text/javascript")._(script.toString())._(); if (!Boolean.valueOf($(LAST_SAVE_STATUS))) { html.div().$style("margin:20px 2px;")._(" ")._(); script.append("location.href='/proxy/").append($(APP_ID)) .append("';"); html.script().$type("text/javascript")._(script.toString())._(); "});\n"; html.script().$type("text/javascript")._(striptHead + striptBody)._(); "});\n"; html.script().$type("text/javascript")._(striptHead + striptBody)._();
html.script().$type("text/javascript"). _("var attemptsTableData=" + attemptsTableData)._();
html.script().$type("text/javascript") ._("var attemptsTableData=" + attemptsTableData)._();
script().$type("text/javascript"). _("$('#cs').hide();")._()._(). _(FairSchedulerAppsBlock.class);
script().$type("text/javascript"). _("$('#cs').hide();")._()._(). _(FairSchedulerAppsBlock.class);
"table.info tr th {width: 50%}")._(). // to center info table script("/static/jt/jquery.jstree.js"). script().$type("text/javascript"). _("$(function() {", " $('#cs a span').addClass('ui-corner-all').css('position', 'absolute');",
script().$type("text/javascript"). _("$('#cs').hide();")._()._(). _(AppsBlock.class);
"table.info tr th {width: 50%}")._(). // to center info table script("/static/jt/jquery.jstree.js"). script().$type("text/javascript"). _("$(function() {", " $('#cs a span').addClass('ui-corner-all').css('position', 'absolute');",
"table.info tr th {width: 50%}")._(). // to center info table script("/static/jt/jquery.jstree.js"). script().$type("text/javascript"). _("$(function() {", " $('#cs a span').addClass('ui-corner-all').css('position', 'absolute');",
script().$type("text/javascript"). _("$('#cs').hide();")._()._(). _(AppsBlock.class);
"table.info tr th {width: 50%}")._(). // to center info table script("/static/jt/jquery.jstree.js"). script().$type("text/javascript"). _("$(function() {", " $('#cs a span').addClass('ui-corner-all').css('position', 'absolute');",
@Override protected void postHead(Page.HTML<_> html) { html. style().$type("text/css"). _("#cs { padding: 0.5em 0 1em 0; margin-bottom: 1em; position: relative }", "#cs ul { list-style: none }", "#cs a { font-weight: normal; margin: 2px; position: relative }", "#cs a span { font-weight: normal; font-size: 80% }", "#cs-wrapper .ui-widget-header { padding: 0.2em 0.5em }", "table.info tr th {width: 50%}")._(). // to center info table script("/static/jt/jquery.jstree.js"). script().$type("text/javascript"). _("$(function() {", " $('#cs a span').addClass('ui-corner-all').css('position', 'absolute');", " $('#cs').bind('loaded.jstree', function (e, data) {", " data.inst.open_all(); }).", " jstree({", " core: { animation: 188, html_titles: true },", " plugins: ['themeroller', 'html_data', 'ui'],", " themeroller: { item_open: 'ui-icon-minus',", " item_clsd: 'ui-icon-plus', item_leaf: 'ui-icon-gear'", " }", " });", " $('#cs').bind('select_node.jstree', function(e, data) {", " var q = $('.q', data.rslt.obj).first().text();", " if (q == 'root') q = '';", " $('#apps').dataTable().fnFilter(q, 4);", " });", " $('#cs').show();", "});")._(); }
private void reopenQueue(Block html) { html. script().$type("text/javascript"). _("function reopenQueryNodes() {", " var currentParam = window.location.href.split('?');", " var tmpCurrentParam = currentParam;", " var queryQueuesString = '';", " if (tmpCurrentParam.length > 1) {", " // openQueues=q1#q2¶m1=value1¶m2=value2", " tmpCurrentParam = tmpCurrentParam[1];", " if (tmpCurrentParam.indexOf('openQueues=') != -1 ) {", " tmpCurrentParam = tmpCurrentParam.split('openQueues=')[1].split('&')[0];", " queryQueuesString = tmpCurrentParam;", " }", " }", " if (queryQueuesString != '') {", " queueArray = queryQueuesString.split('#');", " $('#cs .q').each(function() {", " var name = $(this).html();", " if (name != 'root' && $.inArray(name, queueArray) != -1) {", " $(this).closest('li').removeClass('jstree-closed').addClass('jstree-open'); ", " }", " });", " }", " $('#cs').bind( {", " 'open_node.jstree' :function(e, data) { storeExpandedQueue(e, data); },", " 'close_node.jstree':function(e, data) { storeExpandedQueue(e, data); }", " });", "}")._(); }
private void reopenQueue(Block html) { html. script().$type("text/javascript"). _("function reopenQueryNodes() {", " var currentParam = window.location.href.split('?');", " var tmpCurrentParam = currentParam;", " var queryQueuesString = '';", " if (tmpCurrentParam.length > 1) {", " // openQueues=q1#q2¶m1=value1¶m2=value2", " tmpCurrentParam = tmpCurrentParam[1];", " if (tmpCurrentParam.indexOf('openQueues=') != -1 ) {", " tmpCurrentParam = tmpCurrentParam.split('openQueues=')[1].split('&')[0];", " queryQueuesString = tmpCurrentParam;", " }", " }", " if (queryQueuesString != '') {", " queueArray = queryQueuesString.split('#');", " $('#cs .q').each(function() {", " var name = $(this).html();", " if (name != 'root' && $.inArray(name, queueArray) != -1) {", " $(this).closest('li').removeClass('jstree-closed').addClass('jstree-open'); ", " }", " });", " }", " $('#cs').bind( {", " 'open_node.jstree' :function(e, data) { storeExpandedQueue(e, data); },", " 'close_node.jstree':function(e, data) { storeExpandedQueue(e, data); }", " });", "}")._(); }
@Override protected void postHead(Page.HTML<_> html) { html. style().$type("text/css"). _("#cs { padding: 0.5em 0 1em 0; margin-bottom: 1em; position: relative }", "#cs ul { list-style: none }", "#cs a { font-weight: normal; margin: 2px; position: relative }", "#cs a span { font-weight: normal; font-size: 80% }", "#cs-wrapper .ui-widget-header { padding: 0.2em 0.5em }", "table.info tr th {width: 50%}")._(). // to center info table script("/static/jt/jquery.jstree.js"). script().$type("text/javascript"). _("$(function() {", " $('#cs a span').addClass('ui-corner-all').css('position', 'absolute');", " $('#cs').bind('loaded.jstree', function (e, data) {", " data.inst.open_all(); }).", " jstree({", " core: { animation: 188, html_titles: true },", " plugins: ['themeroller', 'html_data', 'ui'],", " themeroller: { item_open: 'ui-icon-minus',", " item_clsd: 'ui-icon-plus', item_leaf: 'ui-icon-gear'", " }", " });", " $('#cs').bind('select_node.jstree', function(e, data) {", " var q = $('.q', data.rslt.obj).first().text();", " if (q == 'root') q = '';", " $('#apps').dataTable().fnFilter(q, 4);", " });", " $('#cs').show();", "});")._(); }
@Override protected void render(Block html) { html.link(root_url("static/jquery/themes-1.9.1/base/jquery-ui.css")) .link(root_url("static/dt-1.9.4/css/jui-dt.css")) .script(root_url("static/jquery/jquery-1.8.2.min.js")) .script(root_url("static/jquery/jquery-ui-1.9.1.custom.min.js")) .script(root_url("static/dt-1.9.4/js/jquery.dataTables.min.js")) .script(root_url("static/yarn.dt.plugins.js")) .script(root_url("static/dt-sorting/natural.js")) .style("#jsnotice { padding: 0.2em; text-align: center; }", ".ui-progressbar { height: 1em; min-width: 5em }"); // required List<String> list = Lists.newArrayList(); initAccordions(list); initDataTables(list); initDialogs(list); initProgressBars(list); if (!list.isEmpty()) { html.script().$type("text/javascript")._("$(function() {") ._(list.toArray())._("});")._(); } }
@Override protected void render(Block html) { html.link(root_url("static/jquery/themes-1.9.1/base/jquery-ui.css")) .link(root_url("static/dt-1.9.4/css/jui-dt.css")) .script(root_url("static/jquery/jquery-1.8.2.min.js")) .script(root_url("static/jquery/jquery-ui-1.9.1.custom.min.js")) .script(root_url("static/dt-1.9.4/js/jquery.dataTables.min.js")) .script(root_url("static/yarn.dt.plugins.js")) .script(root_url("static/dt-sorting/natural.js")) .style("#jsnotice { padding: 0.2em; text-align: center; }", ".ui-progressbar { height: 1em; min-width: 5em }"); // required List<String> list = Lists.newArrayList(); initAccordions(list); initDataTables(list); initDialogs(list); initProgressBars(list); if (!list.isEmpty()) { html.script().$type("text/javascript")._("$(function() {") ._(list.toArray())._("});")._(); } }