Skip to content

Commit

Permalink
Misc minor fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sophist-UK committed Feb 9, 2018
1 parent 58349bc commit 263efed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down Expand Up @@ -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();
},
Expand All @@ -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');

Expand Down Expand Up @@ -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') {
Expand Down

0 comments on commit 263efed

Please sign in to comment.