server/php/basic/resources/templates/renkan_edit.php
author rougeronj
Tue, 22 Sep 2015 15:14:10 +0200
changeset 543 5f7bebdcfc0d
parent 444 19f0b7803aed
permissions -rw-r--r--
Improve the way we init the view. The data loader send a "loaded" event, hooked by the scene.py and initializing the backbone.history and the view. We don't use redraw_active in save-once and full-json, because it was making the view initialization dependent of these file which are externals. Small fix to hide the "set saved view" button when there is only one view.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
444
19f0b7803aed add schema version + dataloaders to ensure data migrations + small correction for php server exmple + a readme for the php server example
ymh <ymh.work@gmail.com>
parents: 442
diff changeset
     1
<?php require_once(LIBRARY_PATH . "/utilsFunctions.php"); ?>
442
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
<div class="rnk-container">
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
    <div id="renkan"></div>
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
</div>
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
<script src="static/lib/jquery/jquery.js"></script>
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
<script src="static/lib/jquery-mousewheel/jquery.mousewheel.js"></script>
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
<script src="static/lib/lodash/lodash.js"></script>
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
<script src="static/lib/backbone/backbone.js"></script>
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
<script src="static/lib/backbone-relational/backbone-relational.js"></script>
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
<script src="static/lib/paper/paper-full.js"></script>
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
<script type="text/javascript">
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
    var require = {
444
19f0b7803aed add schema version + dataloaders to ensure data migrations + small correction for php server exmple + a readme for the php server example
ymh <ymh.work@gmail.com>
parents: 442
diff changeset
    13
        baseUrl: "<?php echo(selfBaseURL());?>/static/lib/"
442
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
    };
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
</script>
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
<script src="static/lib/requirejs/require.js"></script>
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
<script src="static/lib/renkan/js/renkan.js"></script>
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
<script type="text/javascript">
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
    19
    function startRenkan(){
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
    20
        var _renkan = new Rkns.Renkan({
444
19f0b7803aed add schema version + dataloaders to ensure data migrations + small correction for php server exmple + a readme for the php server example
ymh <ymh.work@gmail.com>
parents: 442
diff changeset
    21
            static_url: "<?php echo(selfBaseURL());?>/static/lib/renkan/"
442
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
    22
        });
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
    23
        Rkns.jsonIO(_renkan, {
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
    24
            url: "renkan.php?renkanId=<?php echo($renkanId); ?>"
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
    25
        });
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
    26
    };
adb907bba956 add server php example
ymh <ymh.work@gmail.com>
parents:
diff changeset
    27
</script>