Commit 52f99ce9 authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

layout settings for code only

parent 89382663
......@@ -316,12 +316,15 @@ $('.panel-collapse').on('show.bs.collapse', function () {
// trigger a specific state
var stateTrans = '{"settings":{"hasHeaders":true,"constrainDragToContainer":true,"reorderEnabled":true,"selectionEnabled":false,"popoutWholeStack":false,"blockedPopoutsThrowError":true,"closePopoutsOnUnload":true,"showPopoutIcon":false,"showMaximiseIcon":true,"showCloseIcon":false,"responsiveMode":"onload"},"dimensions":{"borderWidth":5,"minItemHeight":10,"minItemWidth":10,"headerHeight":20,"dragProxyWidth":300,"dragProxyHeight":200},"labels":{"close":"close","maximise":"maximise","minimise":"minimise","popout":"open in new window","popin":"pop in","tabDropdown":"additional tabs"},"content":[{"type":"stack","width":100,"isClosable":true,"reorderEnabled":true,"title":"","activeItemIndex":0,"content":[{"type":"component","componentName":"tran","title":"Transkription","id":"tran","componentState":{"importclass":".ftran"},"width":33,"isClosable":false,"reorderEnabled":true}]}],"isClosable":true,"reorderEnabled":true,"title":"","openPopouts":[],"maximisedItemId":null}';
var stateCode = '{"settings":{"hasHeaders":true,"constrainDragToContainer":true,"reorderEnabled":true,"selectionEnabled":false,"popoutWholeStack":false,"blockedPopoutsThrowError":true,"closePopoutsOnUnload":true,"showPopoutIcon":false,"showMaximiseIcon":true,"showCloseIcon":false,"responsiveMode":"onload"},"dimensions":{"borderWidth":5,"minItemHeight":10,"minItemWidth":10,"headerHeight":30,"dragProxyWidth":300,"dragProxyHeight":200},"labels":{"close":"close","maximise":"maximise","minimise":"minimise","popout":"open in new window","popin":"pop in","tabDropdown":"additional tabs"},"content":[{"type":"stack","isClosable":true,"reorderEnabled":true,"title":"","width":100,"activeItemIndex":0,"content":[{"type":"component","componentName":"code","title":"Code","id":"code","componentState":{"importclass":".fcode"},"width":30,"isClosable":false,"reorderEnabled":true},{"type":"component","componentName":"toc","title":"Blattübersicht","id":"toc","componentState":{"importclass":".ftoc"},"isClosable":false,"reorderEnabled":true},{"type":"component","componentName":"comm","title":"Stellenkommentar (0)","id":"comm","componentState":{"importclass":".fcomm"},"isClosable":false,"reorderEnabled":true}]}],"isClosable":true,"reorderEnabled":true,"title":"","openPopouts":[],"maximisedItemId":null}';
function goldenState( trigger ){
console.log("hehehe");
switch (trigger) {
case 'trans':
localStorage.setItem( 'savedState', stateTrans );
break;
case 'code':
localStorage.setItem( 'savedState', stateCode );
break;
default:
console.log( "unprepared state item called" );
}
......
Supports Markdown
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