client/js/main.js
changeset 73 cc9deb3b3e13
parent 70 47b3125130a2
child 75 7adef9ce92aa
--- a/client/js/main.js	Mon Mar 11 14:43:52 2013 +0100
+++ b/client/js/main.js	Wed Mar 13 10:19:24 2013 +0100
@@ -129,12 +129,16 @@
     		});
     	});
     }
+    if (typeof _opts.clip_images === "undefined") {
+    	_opts.clip_images = true;
+    }
     this.project = new Rkns.Models.Project();
     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.translate = function(_text) {
     	return (Rkns.i18n[_opts.language] || Rkns.i18n[_opts.language.substr(0,2)] || {})[_text] || _text;