From 5794c7f53b66e996a21cd3796640faeecbbc62b2 Mon Sep 17 00:00:00 2001 From: Sophist <3001893+Sophist-UK@users.noreply.github.com> Date: Thu, 8 Feb 2018 22:17:06 +0000 Subject: [PATCH] Misc minor fixes. --- .../com_fabrik/models/fields/fabrikmodalrepeat.js | 3 ++- .../components/com_fabrik/models/fields/listfields.js | 7 +++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/administrator/components/com_fabrik/models/fields/fabrikmodalrepeat.js b/administrator/components/com_fabrik/models/fields/fabrikmodalrepeat.js index bb0a3cbb6c2..f4bc94f7909 100644 --- a/administrator/components/com_fabrik/models/fields/fabrikmodalrepeat.js +++ b/administrator/components/com_fabrik/models/fields/fabrikmodalrepeat.js @@ -233,7 +233,8 @@ var FabrikModalRepeat = new Class({ // Chosen reset clone.getElements('select').removeClass('chzn-done').show(); - // Assign random id + // Sophist - Chosen is only active on open modals - rows already have unique ids + // and this may be screwing up finding the elements to update options clone.getElements('select').each(function (c) { c.id = c.id + '_' + (Math.random() * 10000000).toInt(); }); diff --git a/administrator/components/com_fabrik/models/fields/listfields.js b/administrator/components/com_fabrik/models/fields/listfields.js index 546bdce3e8f..a5252adb47e 100644 --- a/administrator/components/com_fabrik/models/fields/listfields.js +++ b/administrator/components/com_fabrik/models/fields/listfields.js @@ -57,7 +57,7 @@ var ListFieldsElement = new Class({ }.bind(this)); } else { if (typeOf(document.id(this.options.conn)) === 'null') { - this.cnnperiodical = this.getCnn.periodical(500, this); + this.cnnperiodical = this.getCnn.periodical(100, this); } else { this.setUp(); } @@ -113,7 +113,7 @@ var ListFieldsElement = new Class({ // See if there is a connection selected var v = document.id(this.options.conn).get('value'); if (v !== '' && v !== -1) { - this.periodical = this.updateMe.periodical(500, this); + this.periodical = this.updateMe.periodical(100, this); } this.watchAdd(); }, @@ -122,7 +122,6 @@ var ListFieldsElement = new Class({ if (this.addWatched === true) { return; } - console.log('watch add', this); this.addWatched = true; var add = this.el.getParent().getElement('button'); @@ -169,7 +168,7 @@ var ListFieldsElement = new Class({ var els; // Googlemap inside repeat group & modal repeat - if (typeOf(document.id(this.strEl)) !== null) { + if (typeOf(document.id(this.strEl)) !== 'null') { this.el = document.id(this.strEl); } if (this.options.mode === 'gui') {