client/js/main.js
changeset 73 cc9deb3b3e13
parent 70 47b3125130a2
child 75 7adef9ce92aa
equal deleted inserted replaced
72:dbd90c784424 73:cc9deb3b3e13
   127     		Rkns.$.getJSON(f, function(data) {
   127     		Rkns.$.getJSON(f, function(data) {
   128     			_this.properties = _this.properties.concat(data);
   128     			_this.properties = _this.properties.concat(data);
   129     		});
   129     		});
   130     	});
   130     	});
   131     }
   131     }
       
   132     if (typeof _opts.clip_images === "undefined") {
       
   133     	_opts.clip_images = true;
       
   134     }
   132     this.project = new Rkns.Models.Project();
   135     this.project = new Rkns.Models.Project();
   133     this.language = _opts.language;
   136     this.language = _opts.language;
   134     this.static_url = _opts.static_url;
   137     this.static_url = _opts.static_url;
   135     this.show_bins = _opts.show_bins;
   138     this.show_bins = _opts.show_bins;
   136     this.read_only = _opts.read_only;
   139     this.read_only = _opts.read_only;
   137     this.properties = _opts.properties;
   140     this.properties = _opts.properties;
       
   141     this.clip_images = _opts.clip_images;
   138     
   142     
   139     this.translate = function(_text) {
   143     this.translate = function(_text) {
   140     	return (Rkns.i18n[_opts.language] || Rkns.i18n[_opts.language.substr(0,2)] || {})[_text] || _text;
   144     	return (Rkns.i18n[_opts.language] || Rkns.i18n[_opts.language.substr(0,2)] || {})[_text] || _text;
   141     }
   145     }
   142     if (typeof _opts.user_id !== "undefined") {
   146     if (typeof _opts.user_id !== "undefined") {