client/js/main.js
changeset 111 fbe12f54453a
parent 110 55454c900296
child 113 fac7354c55d2
--- a/client/js/main.js	Mon Mar 25 17:52:14 2013 +0100
+++ b/client/js/main.js	Mon Mar 25 18:54:23 2013 +0100
@@ -116,9 +116,6 @@
     if (typeof _opts.show_bins !== "boolean") {
         _opts.show_bins = !!_opts.search.length || !!_opts.bins.length;
     }
-    if (typeof _opts.read_only !== "boolean") {
-        _opts.read_only = false;
-    }
     if (typeof _opts.properties !== "object") {
     	_opts.properties = [];
     }
@@ -136,9 +133,10 @@
     this.language = _opts.language;
     this.static_url = _opts.static_url;
     this.show_bins = _opts.show_bins;
-    this.read_only = _opts.read_only;
     this.properties = _opts.properties;
     this.clip_images = _opts.clip_images;
+    this.read_only = _opts.read_only || false;
+    this.snapshot_mode = _opts.snapshot_mode || false;
     
     this.translate = function(_text) {
     	return (Rkns.i18n[_opts.language] || Rkns.i18n[_opts.language.substr(0,2)] || {})[_text] || _text;
@@ -254,6 +252,10 @@
     + '<ul class="Rk-Bin-List"></ul></div><% } %><div class="Rk-Render Rk-Render-<% if (show_bins) { %>Panel<% } else { %>Full<% } %>"></div>'
 );
 
+Rkns.Renkan.prototype.onStatusChange = function() {
+	this.renderer.onStatusChange();
+}
+
 
 Rkns.Renkan.prototype.setSearchEngine = function(_key) {
     this.search_engine = this.search_engines[_key];