--- a/client/js/ldtjson-bin.js Tue Apr 23 22:30:09 2013 +0200
+++ b/client/js/ldtjson-bin.js Tue Apr 23 22:53:01 2013 +0200
@@ -1,4 +1,4 @@
-Rkns.Ldt = {}
+Rkns.Ldt = {};
Rkns.Ldt.Bin = function(_renkan, _opts) {
if (_opts.ldt_type) {
@@ -8,7 +8,7 @@
}
}
console.error("No such LDT Bin Type");
-}
+};
Rkns.Ldt.ProjectBin = Rkns.Utils.inherit(Rkns._BaseBin);
@@ -29,13 +29,13 @@
this.title_$.html(_opts.title);
this.title_icon_$.addClass('Rk-Ldt-Title-Icon');
this.refresh();
-}
+};
Rkns.Ldt.ProjectBin.prototype.render = function(searchstr) {
if (searchstr) {
var rxbase = searchstr.replace(/(\W)/g,'\\$1'),
_rgxp = new RegExp('('+rxbase+')','gi'),
- rxtest = new RegExp(rxbase,'i')
+ rxtest = new RegExp(rxbase,'i');
}
function highlight(_text) {
return searchstr ? _text.replace(_rgxp, "<span class='searchmatch'>$1</span>") : _text;
@@ -54,7 +54,7 @@
_seconds = _totalSeconds % 60,
_res = '';
if (_hours) {
- _res += pad(_hours) + ':'
+ _res += pad(_hours) + ':';
}
_res += pad(_minutes) + ':' + pad(_seconds);
return _res;
@@ -77,7 +77,7 @@
htitle: highlight(_title),
encodedtitle : encodeURIComponent(_title),
static_url: _this.renkan.options.static_url
- })
+ });
});
_html += '<li><h3>Annotations</h3></li>';
Rkns._(_this.data.annotations).map(function(_annotation) {
@@ -121,7 +121,7 @@
this.$.show();
}
this.renkan.resizeBins();
-}
+};
Rkns.Ldt.ProjectBin.prototype.refresh = function() {
var _this = this;
@@ -133,20 +133,20 @@
_this.render();
}
});
-}
+};
Rkns.Ldt.Search = function(_renkan, _opts) {
this.renkan = _renkan;
this.lang = _opts.lang || "en";
-}
+};
Rkns.Ldt.Search.prototype.getBgClass = function() {
return "Rk-Ldt-Icon";
-}
+};
Rkns.Ldt.Search.prototype.getSearchTitle = function() {
return this.renkan.translate("Lignes de Temps");
-}
+};
Rkns.Ldt.Search.prototype.search = function(_q) {
this.renkan.tabs.push(
@@ -154,7 +154,7 @@
search: _q
})
);
-}
+};
Rkns.Ldt.ResultsBin = Rkns.Utils.inherit(Rkns._BaseBin);
@@ -171,13 +171,13 @@
this.title_$.html('Lignes de Temps: "' + _opts.search + '"');
this.title_icon_$.addClass('Rk-Ldt-Title-Icon');
this.refresh();
-}
+};
Rkns.Ldt.ResultsBin.prototype.render = function(searchstr) {
if (searchstr) {
var rxbase = searchstr.replace(/(\W)/g,'\\$1'),
_rgxp = new RegExp('('+rxbase+')','gi'),
- rxtest = new RegExp(rxbase,'i')
+ rxtest = new RegExp(rxbase,'i');
} else {
var rxbase = this.search.replace(/(\W)/g,'\\$1'),
_rgxp = new RegExp('('+rxbase+')','gi');
@@ -199,7 +199,7 @@
_seconds = _totalSeconds % 60,
_res = '';
if (_hours) {
- _res += pad(_hours) + ':'
+ _res += pad(_hours) + ':';
}
_res += pad(_minutes) + ':' + pad(_seconds);
return _res;
@@ -217,7 +217,7 @@
count++;
var _duration = _segment.duration,
_begin = _segment.start_ts,
- _end = + _segment.duration + _begin
+ _end = + _segment.duration + _begin,
_img = (
_duration
? _this.renkan.options.static_url + "img/ldt-segment.png"
@@ -252,7 +252,7 @@
this.$.show();
}
this.renkan.resizeBins();
-}
+};
Rkns.Ldt.ResultsBin.prototype.refresh = function() {
var _this = this;
@@ -269,4 +269,4 @@
_this.render();
}
});
-}
\ No newline at end of file
+};
\ No newline at end of file