server/php/basic/resources/templates/renkan_read.php
author rougeronj
Wed, 16 Sep 2015 17:36:46 +0200
changeset 524 904effa4b6d7
parent 444 19f0b7803aed
permissions -rw-r--r--
improve view management: - we can pass a negative view index, in this case we count from the end of the list of view - before creating/changing the view representation, we remove the previous one and reinitialize the node visibility - each time we save a view, it creates a new one at the end of the list - "restore" view loads the last view of the list

<?php require_once(LIBRARY_PATH . "/utilsFunctions.php"); ?>
<div class="rnk-container">
    <div id="renkan"></div>
</div>
<script src="static/lib/jquery/jquery.js"></script>
<script src="static/lib/jquery-mousewheel/jquery.mousewheel.js"></script>
<script src="static/lib/lodash/lodash.js"></script>
<script src="static/lib/backbone/backbone.js"></script>
<script src="static/lib/backbone-relational/backbone-relational.js"></script>
<script src="static/lib/paper/paper-full.js"></script>
<script type="text/javascript">
    var require = {
        baseUrl: "<?php echo(selfBaseURL());?>/static/lib/"
    };
</script>
<script src="static/lib/requirejs/require.js"></script>
<script src="static/lib/renkan/js/renkan.js"></script>
<script type="text/javascript">
    function startRenkan(){
        var _renkan = new Rkns.Renkan({
            editor_mode: false,
            show_bins: false,
            static_url: "<?php echo(selfBaseURL());?>/static/lib/renkan/"
        });
        Rkns.jsonIO(_renkan, {
            url: "renkan.php?renkanId=<?php echo($renkanId); ?>"
        });
    };
</script>