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.
(function(root) {
"use strict";
var Backbone = root.Backbone;
var Router = root.Rkns.Router = Backbone.Router.extend({
routes: {
'': 'index'
},
index: function (parameters) {
var result = {};
if (parameters !== null){
parameters.split("&").forEach(function(part) {
var item = part.split("=");
result[item[0]] = decodeURIComponent(item[1]);
});
}
this.trigger('router', result);
}
});
})(window);