Support blur on string values in virtual corpora
Change-Id: I809b9d5c7b9d04a4ab0ce2835d2f0fdd461e5454
diff --git a/dev/js/src/vc.js b/dev/js/src/vc.js
index d6a26f2..4772115 100644
--- a/dev/js/src/vc.js
+++ b/dev/js/src/vc.js
@@ -243,8 +243,9 @@
* Get the element associated with the virtual collection
*/
element : function () {
- if (this._element !== undefined)
- return this._element;
+ if (this._element !== undefined) {
+ return this._element;
+ };
this._element = document.createElement('div');
this._element.setAttribute('class', 'vc');
@@ -270,18 +271,18 @@
* as a creation date limit criterion.
*/
makePersistant : function () {
-// this.root().wrapOnRoot('and');
+ // this.root().wrapOnRoot('and');
var todayStr = KorAP._vcDatePicker.today();
var doc = docClass.create();
var root = this.root();
if (root.ldType() === 'docGroup' &&
- root.operation === 'and') {
- root.append(cond);
+ root.operation === 'and') {
+ root.append(cond);
}
else {
- root.wrapOnRoot('and');
- root.append(doc);
+ root.wrapOnRoot('and');
+ root.append(doc);
};
doc.key("creationDate");