diff --git a/static/images/overview_arrows.png b/static/images/overview_arrows.png new file mode 100644 index 00000000000..ddaa17da1a3 Binary files /dev/null and b/static/images/overview_arrows.png differ diff --git a/static/images/resizable.png b/static/images/resizable.png new file mode 100644 index 00000000000..db29514f8da Binary files /dev/null and b/static/images/resizable.png differ diff --git a/templates/workflow/editor.mako b/templates/workflow/editor.mako index 9bfa3279f10..6f168c9000f 100644 --- a/templates/workflow/editor.mako +++ b/templates/workflow/editor.mako @@ -121,6 +121,19 @@ canvas_manager.draw_overview(); }); + /* Lets the viewport be toggled visible and invisible, adjusting the arrows accordingly */ + $("#close-viewport").click( function() { + if ( $("#overview-border").css("right") == "0px" ) { + $("#overview-border").css("right", "20000px"); + $("#close-viewport").css("background-position", "12px 0px"); + + } else { + $("#overview-border").css("right", "0px"); + $("#close-viewport").css("background-position", "0px 0px"); + } + + }); + // Unload handler window.onbeforeunload = function() { if ( workflow && workflow.has_changes ) { @@ -629,7 +642,7 @@