Commit 16639786 authored by Klaus Wölfel's avatar Klaus Wölfel

update static version

parent 197245d2
...@@ -67,6 +67,8 @@ ...@@ -67,6 +67,8 @@
<h1>Dream Simulation</h1> <h1>Dream Simulation</h1>
<div data-role="controlgroup" data-type="horizontal" class="ui-btn-right"> <div data-role="controlgroup" data-type="horizontal" class="ui-btn-right">
<a data-icon="forward"
class="next_step_link ui-btn ui-icon-forward ui-btn-icon-right">Next Step</a>
<a data-icon="forward" <a data-icon="forward"
class="next_link ui-btn ui-icon-forward ui-btn-icon-right">Next</a> class="next_link ui-btn ui-icon-forward ui-btn-icon-right">Next</a>
</div> </div>
......
...@@ -78,6 +78,17 @@ ...@@ -78,6 +78,17 @@
return gadget.aq_pleasePublishMyState(forward_kw); return gadget.aq_pleasePublishMyState(forward_kw);
}); });
} }
function getNextStepLink(gadget, portal_type, options) {
if (options.action === "view_machine_shift_spreadsheet") {
var forward_kw = {
action: "view_run_simulation",
id: options.id
};
return gadget.aq_pleasePublishMyState(forward_kw);
} else {
return false;
}
}
function getTitle(gadget, portal_type, options) { function getTitle(gadget, portal_type, options) {
var title; var title;
if (portal_type === "Input Module") { if (portal_type === "Input Module") {
...@@ -285,7 +296,7 @@ ...@@ -285,7 +296,7 @@
return page_gadget.render(options); return page_gadget.render(options);
} }
}).push(function() { }).push(function() {
return RSVP.all([ page_gadget.getElement(), calculateNavigationHTML(gadget, portal_type, options), gadget.aq_pleasePublishMyState(back_kw), getTitle(gadget, portal_type, options), getNextLink(gadget, portal_type, options) ]); return RSVP.all([ page_gadget.getElement(), calculateNavigationHTML(gadget, portal_type, options), gadget.aq_pleasePublishMyState(back_kw), getTitle(gadget, portal_type, options), getNextLink(gadget, portal_type, options), getNextStepLink(gadget, portal_type, options) ]);
}).push(function(result_list) { }).push(function(result_list) {
var nav_html = result_list[1], page_element = result_list[0]; var nav_html = result_list[1], page_element = result_list[0];
// Update title // Update title
...@@ -313,6 +324,25 @@ ...@@ -313,6 +324,25 @@
} }
element.appendChild(page_element); element.appendChild(page_element);
$(element).trigger("create"); $(element).trigger("create");
return result_list[5];
}).push(function(next_step_link) {
var button = gadget.props.element.getElementsByClassName("next_step_link")[0];
$(button).hide();
var idle_timer;
function resetTimer() {
clearTimeout(idle_timer);
idle_timer = setTimeout(function() {
$(button).show();
}, idle_seconds * 1e3);
}
if (next_step_link !== false) {
button.href = next_step_link;
var idle_seconds = 10;
$(document.body).on("keydown click", resetTimer);
resetTimer();
} else {
$(document.body).off("keydown click", resetTimer);
}
// XXX RenderJS hack to start sub gadget services // XXX RenderJS hack to start sub gadget services
// Only work if this gadget has no parent. // Only work if this gadget has no parent.
if (page_gadget.startService !== undefined) { if (page_gadget.startService !== undefined) {
......
CACHE MANIFEST
# This manifest was generated by grunt-manifest HTML5 Cache Manifest Generator
# Time: Sun Apr 19 2015 23:09:42 GMT+0000 (GMT)
CACHE:
dream/InputModule_viewAddDocumentDialog.js
dream/InputModule_viewAddInstanceDefinitionDialog.js
dream/InputModule_viewInputList.js
dream/Input_viewAttachDocument.js
dream/Input_viewAvailableCapacitySpreadsheet.js
dream/Input_viewDebugJson.js
dream/Input_viewDemandPlanningCapacitySpreadsheet.js
dream/Input_viewDemandPlanningRouteSpreadsheet.js
dream/Input_viewDemandPlanningapacitySpreadsheet.js
dream/Input_viewDocumentManagement.js
dream/Input_viewProductionLine.js
dream/Input_viewRequiredCapacitySpreadsheet.js
dream/Input_viewResultComparison.js
dream/Input_viewResultList.js
dream/Input_viewShiftSpreadsheet.js
dream/Input_viewSimulation.js
dream/Input_viewSpreadsheet.js
dream/Input_viewTable.js
dream/Input_viewWipPartSpreadsheet.js
dream/Output_viewCalendar.js
dream/Output_viewCapacityUtilisationGraph.js
dream/Output_viewDownloadFile.js
dream/Output_viewExitStatistics.js
dream/Output_viewGantt.js
dream/Output_viewGraph.js
dream/Output_viewJobGantt.js
dream/Output_viewJobScheduleSpreadsheet.js
dream/Output_viewSpreadsheet.js
dream/Output_viewStationUtilisationGraph.js
dream/index.js
dream/mixin_gadget.js
dream/mixin_promise.js
expandable_field/expandablefield.js
fieldset/fieldset.js
handsontable/handsontable.js
handsontable/test.js
jio_bridge/jiogadget.js
jsplumb/jsplumb.js
jsplumb/test.js
lib/URI.js
lib/codemirror-compressed.js
lib/dhtmlxgantt.js
lib/dhtmlxscheduler.js
lib/handlebars.min.js
lib/handsontable.js
lib/jio.js
lib/jquery-ui.js
lib/jquery.flot.js
lib/jquery.flot.stack.js
lib/jquery.flot.time.js
lib/jquery.js
lib/jquery.jsplumb.js
lib/jquery.simulate.js
lib/jquerymobile.js
lib/jsonlint.js
lib/moment.js
lib/pubsub.js
lib/qunit.js
lib/renderjs.min.js
lib/rsvp.min.js
lib/uritemplate.min.js
list_field/listfield.js
number_field/numberfield.js
string_field/stringfield.js
toolbox/toolbox.js
dream/InputModule_viewAddInstanceDefinitionDialog.css
dream/index.css
jsplumb/jsplumb.css
lib/codemirror.css
lib/dhtmlxgantt.css
lib/dhtmlxscheduler.css
lib/handsontable.css
lib/jquery-ui.css
lib/jquerymobile.css
lib/qunit.css
toolbox/toolbox.css
NETWORK:
*
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment