Skip to content

Commit

Permalink
Merge pull request #2279 from jeedom/alpha
Browse files Browse the repository at this point in the history
merge
  • Loading branch information
zoic21 committed Aug 24, 2023
2 parents bcdbf23 + 7980e96 commit 0be55d0
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion core/dom/dom.utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ EventTarget.prototype.unRegisterEvent = function(_type, _id) {
}

EventTarget.prototype.getRegisteredEvent = function(_type, _id) {
var self = this
let self = this
let listeners = domUtils.registeredEvents.filter(function(listener) {
return ( (isset(_type)? listener.type == _type : true) && (isset(_id)? listener.id == _id : true) && listener.element == self )
})
Expand Down
4 changes: 2 additions & 2 deletions desktop/js/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ if (!jeeFrontEnd.dashboard) {
},
getObjectHtmlFromSummary: function(_object_id) {
if (_object_id == null) return
self = this
let self = this
self._object_id = _object_id
self.summaryObjEqs = []
self.summaryObjEqs[_object_id] = []
Expand Down Expand Up @@ -297,7 +297,7 @@ if (!jeeFrontEnd.dashboard) {
})
},
getObjectHtml: function(_object_id) {
self = this
let self = this
jeedom.object.toHtml({
id: _object_id,
version: 'dashboard',
Expand Down
2 changes: 1 addition & 1 deletion desktop/js/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ var options = {
name : '{{Editer}}'
},
load : function(textarea) {
self = this
let self = this
var elfinderInstance = $('#elfinder').elfinder(options).elfinder('instance')
var fileUrl = elfinderInstance.url(self.file.hash)
fileUrl = fileUrl.replace('/core/php/../../', '')
Expand Down
2 changes: 1 addition & 1 deletion desktop/js/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ if (!jeeFrontEnd.history) {
jeedom.history.emptyChart(this.__el__, true)

//add data from both date range:
self = this
let self = this
jeedom.history.drawChart({
cmd_id: _cmd_id,
el: self.__el__,
Expand Down
2 changes: 1 addition & 1 deletion desktop/js/overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ if (!jeeFrontEnd.overview) {
},
getSummaryHtml: function(_object_id, _summary, _title) {
this.summaryObjEqs[_object_id] = []
self = this
let self = this
jeedom.object.getEqLogicsFromSummary({
id: _object_id,
onlyEnable: '1',
Expand Down
2 changes: 1 addition & 1 deletion desktop/js/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ if (!jeeFrontEnd.plugin) {
},
displayPlugin: function(_pluginId) {
jeedomUtils.hideAlert()
var self = this
let self = this
//Is plugin page displayed inside modal from _pluginId page or Core plugin management page:
this.modal = jeeDialog.get('#div_confPlugin', 'dialog')
if (this.modal != null) {
Expand Down
2 changes: 1 addition & 1 deletion desktop/modal/cmd.history.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
done: null,
loadIds: null,
init: function(_cmdIds) {
self = this
let self = this
document.getElementById(this.__el__).style.position = 'relative'
document.getElementById(this.__el__).style.width = '100%'
delete jeedom.history.chart[this.__el__]
Expand Down
14 changes: 7 additions & 7 deletions desktop/modal/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
if (!jeeFrontEnd.md_search) {
jeeFrontEnd.md_search = {
init: function() {
var self = this
let self = this
this.tableScSearch = document.getElementById('table_ScenarioSearch')
this.tablePlanSearch = document.getElementById('table_DesignSearch')
this.tableViewSearch = document.getElementById('table_ViewSearch')
Expand Down Expand Up @@ -255,7 +255,7 @@
},
/* ------ Searching -------*/
searchFor_variable: function(_searchFor) {
self = this
let self = this
jeedom.dataStore.byTypeLinkIdKey({
type: 'scenario',
linkId: -1,
Expand Down Expand Up @@ -295,7 +295,7 @@
})
},
searchFor_plugin: function(_searchFor) {
self = this
let self = this
jeedom.eqLogic.byType({
type: _searchFor,
error: function(error) {
Expand All @@ -319,7 +319,7 @@
var eQiD = _byId
}

self = this
let self = this
jeedom.eqLogic.usedBy({
id: eQiD,
error: function(error) {
Expand Down Expand Up @@ -373,7 +373,7 @@
var cmdId = _byId
}

self = this
let self = this
jeedom.cmd.usedBy({
id: cmdId,
error: function(error) {
Expand Down Expand Up @@ -406,7 +406,7 @@
})
},
searchFor_string: function(_searchFor) {
self = this
let self = this
jeedom.getStringUsedBy({
search: _searchFor,
error: function(error) {
Expand Down Expand Up @@ -436,7 +436,7 @@
})
},
searchFor_id: function(_searchFor) {
self = this
let self = this
jeedom.getIdUsedBy({
search: _searchFor,
error: function(error) {
Expand Down

0 comments on commit 0be55d0

Please sign in to comment.