Commit 5e68364e authored by JC Brand's avatar JC Brand

Regenerated dist files.

parent 805db75e
...@@ -49781,8 +49781,7 @@ return Backbone.BrowserStorage; ...@@ -49781,8 +49781,7 @@ return Backbone.BrowserStorage;
}; };
this.giveFeedback = function (subject, klass, message) { this.giveFeedback = function (subject, klass, message) {
var els = document.querySelectorAll('.conn-feedback'); _.forEach(document.querySelectorAll('.conn-feedback'), function (el) {
_.forEach(els, function (el) {
el.classList.add('conn-feedback'); el.classList.add('conn-feedback');
el.textContent = subject; el.textContent = subject;
if (klass) { if (klass) {
...@@ -55186,7 +55185,7 @@ return __p ...@@ -55186,7 +55185,7 @@ return __p
initialize: function initialize() { initialize: function initialize() {
this.model.on('change:current_skintone', this.render, this); this.model.on('change:current_skintone', this.render, this);
this.model.on('change:current_category', this.render, this); this.model.on('change:current_category', this.render, this);
this.setScrollPosition = _.debounce(this.setScrollPosition, 50); this.setScrollPosition = _.debounce(this.setScrollPosition, 50).bind(this);
}, },
render: function render() { render: function render() {
var _this = this; var _this = this;
...@@ -55199,8 +55198,8 @@ return __p ...@@ -55199,8 +55198,8 @@ return __p
'shouldBeHidden': this.shouldBeHidden 'shouldBeHidden': this.shouldBeHidden
})); }));
this.el.innerHTML = emojis_html; this.el.innerHTML = emojis_html;
this.el.querySelectorAll('.emoji-picker').forEach(function (el) { _.forEach(this.el.querySelectorAll('.emoji-picker'), function (el) {
el.addEventListener('scroll', _this.setScrollPosition.bind(_this)); el.addEventListener('scroll', _this.setScrollPosition);
}); });
this.restoreScrollPosition(); this.restoreScrollPosition();
return this; return this;
...@@ -55227,7 +55226,7 @@ return __p ...@@ -55227,7 +55226,7 @@ return __p
current_picker[0].scrollTop = this.model.get('scroll_position'); current_picker[0].scrollTop = this.model.get('scroll_position');
} }
}, },
setScrollPosition: function setScrollPosition(ev, position) { setScrollPosition: function setScrollPosition(ev) {
this.model.save('scroll_position', ev.target.scrollTop); this.model.save('scroll_position', ev.target.scrollTop);
}, },
chooseSkinTone: function chooseSkinTone(ev) { chooseSkinTone: function chooseSkinTone(ev) {
...@@ -58827,7 +58826,10 @@ Strophe.addConnectionPlugin('disco', ...@@ -58827,7 +58826,10 @@ Strophe.addConnectionPlugin('disco',
}, },
openChatRoom: function openChatRoom(ev) { openChatRoom: function openChatRoom(ev) {
ev.preventDefault(); ev.preventDefault();
_converse.openChatRoom(this.parseRoomDataFromEvent(ev)); var data = this.parseRoomDataFromEvent(ev);
if (!_.isUndefined(data)) {
_converse.openChatRoom(data);
}
}, },
setDomain: function setDomain(ev) { setDomain: function setDomain(ev) {
this.model.save({ muc_domain: ev.target.value }); this.model.save({ muc_domain: ev.target.value });
...@@ -71177,6 +71179,9 @@ return __p ...@@ -71177,6 +71179,9 @@ return __p
* user. They should always be shown. * user. They should always be shown.
*/ */
var result = this.__super__.parseRoomDataFromEvent.apply(this, arguments); var result = this.__super__.parseRoomDataFromEvent.apply(this, arguments);
if (_.isUndefined(result)) {
return;
}
result.hidden = false; result.hidden = false;
return result; return result;
} }
...@@ -8169,8 +8169,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol ...@@ -8169,8 +8169,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
}; };
this.giveFeedback = function (subject, klass, message) { this.giveFeedback = function (subject, klass, message) {
var els = document.querySelectorAll('.conn-feedback'); _.forEach(document.querySelectorAll('.conn-feedback'), function (el) {
_.forEach(els, function (el) {
el.classList.add('conn-feedback'); el.classList.add('conn-feedback');
el.textContent = subject; el.textContent = subject;
if (klass) { if (klass) {
...@@ -12480,7 +12479,7 @@ return __p ...@@ -12480,7 +12479,7 @@ return __p
initialize: function initialize() { initialize: function initialize() {
this.model.on('change:current_skintone', this.render, this); this.model.on('change:current_skintone', this.render, this);
this.model.on('change:current_category', this.render, this); this.model.on('change:current_category', this.render, this);
this.setScrollPosition = _.debounce(this.setScrollPosition, 50); this.setScrollPosition = _.debounce(this.setScrollPosition, 50).bind(this);
}, },
render: function render() { render: function render() {
var _this = this; var _this = this;
...@@ -12493,8 +12492,8 @@ return __p ...@@ -12493,8 +12492,8 @@ return __p
'shouldBeHidden': this.shouldBeHidden 'shouldBeHidden': this.shouldBeHidden
})); }));
this.el.innerHTML = emojis_html; this.el.innerHTML = emojis_html;
this.el.querySelectorAll('.emoji-picker').forEach(function (el) { _.forEach(this.el.querySelectorAll('.emoji-picker'), function (el) {
el.addEventListener('scroll', _this.setScrollPosition.bind(_this)); el.addEventListener('scroll', _this.setScrollPosition);
}); });
this.restoreScrollPosition(); this.restoreScrollPosition();
return this; return this;
...@@ -12521,7 +12520,7 @@ return __p ...@@ -12521,7 +12520,7 @@ return __p
current_picker[0].scrollTop = this.model.get('scroll_position'); current_picker[0].scrollTop = this.model.get('scroll_position');
} }
}, },
setScrollPosition: function setScrollPosition(ev, position) { setScrollPosition: function setScrollPosition(ev) {
this.model.save('scroll_position', ev.target.scrollTop); this.model.save('scroll_position', ev.target.scrollTop);
}, },
chooseSkinTone: function chooseSkinTone(ev) { chooseSkinTone: function chooseSkinTone(ev) {
...@@ -18593,7 +18592,10 @@ return __p ...@@ -18593,7 +18592,10 @@ return __p
}, },
openChatRoom: function openChatRoom(ev) { openChatRoom: function openChatRoom(ev) {
ev.preventDefault(); ev.preventDefault();
_converse.openChatRoom(this.parseRoomDataFromEvent(ev)); var data = this.parseRoomDataFromEvent(ev);
if (!_.isUndefined(data)) {
_converse.openChatRoom(data);
}
}, },
setDomain: function setDomain(ev) { setDomain: function setDomain(ev) {
this.model.save({ muc_domain: ev.target.value }); this.model.save({ muc_domain: ev.target.value });
...@@ -49781,8 +49781,7 @@ return Backbone.BrowserStorage; ...@@ -49781,8 +49781,7 @@ return Backbone.BrowserStorage;
}; };
this.giveFeedback = function (subject, klass, message) { this.giveFeedback = function (subject, klass, message) {
var els = document.querySelectorAll('.conn-feedback'); _.forEach(document.querySelectorAll('.conn-feedback'), function (el) {
_.forEach(els, function (el) {
el.classList.add('conn-feedback'); el.classList.add('conn-feedback');
el.textContent = subject; el.textContent = subject;
if (klass) { if (klass) {
...@@ -54092,7 +54091,7 @@ return __p ...@@ -54092,7 +54091,7 @@ return __p
initialize: function initialize() { initialize: function initialize() {
this.model.on('change:current_skintone', this.render, this); this.model.on('change:current_skintone', this.render, this);
this.model.on('change:current_category', this.render, this); this.model.on('change:current_category', this.render, this);
this.setScrollPosition = _.debounce(this.setScrollPosition, 50); this.setScrollPosition = _.debounce(this.setScrollPosition, 50).bind(this);
}, },
render: function render() { render: function render() {
var _this = this; var _this = this;
...@@ -54105,8 +54104,8 @@ return __p ...@@ -54105,8 +54104,8 @@ return __p
'shouldBeHidden': this.shouldBeHidden 'shouldBeHidden': this.shouldBeHidden
})); }));
this.el.innerHTML = emojis_html; this.el.innerHTML = emojis_html;
this.el.querySelectorAll('.emoji-picker').forEach(function (el) { _.forEach(this.el.querySelectorAll('.emoji-picker'), function (el) {
el.addEventListener('scroll', _this.setScrollPosition.bind(_this)); el.addEventListener('scroll', _this.setScrollPosition);
}); });
this.restoreScrollPosition(); this.restoreScrollPosition();
return this; return this;
...@@ -54133,7 +54132,7 @@ return __p ...@@ -54133,7 +54132,7 @@ return __p
current_picker[0].scrollTop = this.model.get('scroll_position'); current_picker[0].scrollTop = this.model.get('scroll_position');
} }
}, },
setScrollPosition: function setScrollPosition(ev, position) { setScrollPosition: function setScrollPosition(ev) {
this.model.save('scroll_position', ev.target.scrollTop); this.model.save('scroll_position', ev.target.scrollTop);
}, },
chooseSkinTone: function chooseSkinTone(ev) { chooseSkinTone: function chooseSkinTone(ev) {
...@@ -60985,7 +60984,10 @@ Strophe.addConnectionPlugin('disco', ...@@ -60985,7 +60984,10 @@ Strophe.addConnectionPlugin('disco',
}, },
openChatRoom: function openChatRoom(ev) { openChatRoom: function openChatRoom(ev) {
ev.preventDefault(); ev.preventDefault();
_converse.openChatRoom(this.parseRoomDataFromEvent(ev)); var data = this.parseRoomDataFromEvent(ev);
if (!_.isUndefined(data)) {
_converse.openChatRoom(data);
}
}, },
setDomain: function setDomain(ev) { setDomain: function setDomain(ev) {
this.model.save({ muc_domain: ev.target.value }); this.model.save({ muc_domain: ev.target.value });
...@@ -71694,6 +71696,9 @@ return __p ...@@ -71694,6 +71696,9 @@ return __p
* user. They should always be shown. * user. They should always be shown.
*/ */
var result = this.__super__.parseRoomDataFromEvent.apply(this, arguments); var result = this.__super__.parseRoomDataFromEvent.apply(this, arguments);
if (_.isUndefined(result)) {
return;
}
result.hidden = false; result.hidden = false;
return result; return result;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment