diff --git a/README.md b/README.md index cd2826563..858d00c7b 100644 --- a/README.md +++ b/README.md @@ -207,8 +207,10 @@ Notice that these settings are valid only for reconnection and not for the first ### __WORK IN PROGRESS__ --> ## Changelog -### 1.4.10 (2022-02-12) +### 1.4.11 (2022-02-12) * (bluefox) Removed ES6 commands to be supported by older browsers +* (oweitman) Fixed problem with update of grouped widgets +* (stephanritscher) Added web manifest to be able to handle vis as the web app ### 1.4.8 (2022-01-29) * (bluefox) Added support for js-controller 4.x diff --git a/io-package.json b/io-package.json index aee144b2b..553b4a1b9 100644 --- a/io-package.json +++ b/io-package.json @@ -1,19 +1,19 @@ { "common": { "name": "vis", - "version": "1.4.10", + "version": "1.4.11", "news": { - "1.4.10": { - "en": "Removed ES6 commands to be supported by older browsers", - "de": "Entfernte ES6-Befehle, die von älteren Browsern unterstützt werden sollen", - "ru": "Удалены команды ES6 для поддержки старых браузеров.", - "pt": "Comandos ES6 removidos para serem suportados por navegadores mais antigos", - "nl": "ES6-commando's verwijderd om door oudere browsers te worden ondersteund", - "fr": "Suppression des commandes ES6 pour qu'elles soient prises en charge par les anciens navigateurs", - "it": "Rimossi i comandi ES6 per essere supportati dai browser meno recenti", - "es": "Se eliminaron los comandos de ES6 para que sean compatibles con navegadores más antiguos.", - "pl": "Usunięto polecenia ES6, które mają być obsługiwane przez starsze przeglądarki", - "zh-cn": "删除了旧浏览器支持的 ES6 命令" + "1.4.11": { + "en": "Removed ES6 commands to be supported by older browsers\nFixed problem with update of grouped widgets\nAdded web manifest to be able to handle vis as the web app", + "de": "Entfernte ES6-Befehle, die von älteren Browsern unterstützt werden sollen\nProblem mit der Aktualisierung von gruppierten Widgets behoben\nWeb-Manifest hinzugefügt, um vis als Web-App handhaben zu können", + "ru": "Удалены команды ES6 для поддержки старых браузеров.\nИсправлена проблема с обновлением сгруппированных виджетов\nДобавлен веб-манифест, позволяющий обрабатывать vis как веб-приложение.", + "pt": "Comandos ES6 removidos para serem suportados por navegadores mais antigos\nCorrigido problema com atualização de widgets agrupados\nManifesto da web adicionado para poder lidar com vis como o aplicativo da web", + "nl": "ES6-commando's verwijderd om door oudere browsers te worden ondersteund\nProbleem opgelost met update van gegroepeerde widgets\nWebmanifest toegevoegd om vis als webapp te kunnen gebruiken", + "fr": "Suppression des commandes ES6 pour qu'elles soient prises en charge par les anciens navigateurs\nCorrection d'un problème avec la mise à jour des widgets groupés\nAjout d'un manifeste Web pour pouvoir gérer vis en tant qu'application Web", + "it": "Rimossi i comandi ES6 per essere supportati dai browser meno recenti\nRisolto il problema con l'aggiornamento dei widget raggruppati\nAggiunto manifesto web per poter gestire vis come app web", + "es": "Se eliminaron los comandos de ES6 para que sean compatibles con navegadores más antiguos.\nSolucionado el problema con la actualización de widgets agrupados\nSe agregó un manifiesto web para poder manejar vis como la aplicación web.", + "pl": "Usunięto polecenia ES6, które mają być obsługiwane przez starsze przeglądarki\nNaprawiono problem z aktualizacją zgrupowanych widżetów\nDodano manifest internetowy, aby móc obsługiwać vis jako aplikację internetową", + "zh-cn": "删除了旧浏览器支持的 ES6 命令\n修复了分组小部件更新的问题\n添加了 Web 清单,以便能够将 vis 作为 Web 应用程序处理" }, "1.4.8": { "en": "Added support for js-controller 4.x", diff --git a/package.json b/package.json index 025dc3c32..981c1790c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "iobroker.vis", "description": "Graphical user interface for ioBroker.", - "version": "1.4.10", + "version": "1.4.11", "author": { "name": "bluefox", "email": "dogafox@gmail.com" diff --git a/www/cache.manifest b/www/cache.manifest index ffc8853ef..dab14eed9 100644 --- a/www/cache.manifest +++ b/www/cache.manifest @@ -1,6 +1,6 @@ CACHE MANIFEST # -# vis Version 1.4.10 +# vis Version 1.4.11 # dev build 0 diff --git a/www/edit.html b/www/edit.html index 1c879e97f..813b2386f 100644 --- a/www/edit.html +++ b/www/edit.html @@ -2,7 +2,7 @@ - + - + diff --git a/www/js/vis.js b/www/js/vis.js index 387c9c6b3..5d078508e 100644 --- a/www/js/vis.js +++ b/www/js/vis.js @@ -277,7 +277,7 @@ var FORBIDDEN_CHARS = /[^._\-/ :!#$%&()+=@^{}|~]+/g; // from https://github.com/ // var FORBIDDEN_CHARS = /[^._\-/ :!#$%&()+=@^{}|~\p{Ll}\p{Lu}\p{Nd}]+/gu; // it must be like this, but old browsers does not support Unicode var vis = { - version: '1.4.10', + version: '1.4.11', requiredServerVersion: '0.0.0', storageKeyViews: 'visViews', @@ -1119,7 +1119,9 @@ var vis = { viewDiv = viewDiv || this.activeViewDiv; this.destroyWidget(viewDiv, view, widget); - this.renderWidget(viewDiv, view, widget, !this.views[viewDiv] && viewDiv !== widget ? viewDiv : vis.views[view].widgets[widget].groupid ? vis.views[view].widgets[widget].groupid : null); + this.renderWidget(viewDiv, view, widget, !this.views[viewDiv] && viewDiv !== widget ? + viewDiv : + (vis.views[view].widgets[widget].groupid ? vis.views[view].widgets[widget].groupid : null)); updateContainers && this.updateContainers(viewDiv, view); }, diff --git a/www/js/visEdit.js b/www/js/visEdit.js index 1790282e6..891a81b19 100644 --- a/www/js/visEdit.js +++ b/www/js/visEdit.js @@ -6821,8 +6821,12 @@ vis = $.extend(true, vis, { //var rect = this.editWidgetsRect(viewDiv, view, groupId); for (w = 0; w < widgets.length; w++) { if (!this.views[view].widgets[widgets[w]]) continue; - if (this.views[view].widgets[widgets[w]].grouped !== undefined) delete this.views[view].widgets[widgets[w]].grouped; - if (this.views[view].widgets[widgets[w]].groupid !== undefined) delete this.views[view].widgets[widgets[w]].groupid; + if (this.views[view].widgets[widgets[w]].grouped !== undefined) { + delete this.views[view].widgets[widgets[w]].grouped; + } + if (this.views[view].widgets[widgets[w]].groupid !== undefined) { + delete this.views[view].widgets[widgets[w]].groupid; + } var wRect = this.editWidgetsRect(viewDiv, view, widgets[w]); this.views[view].widgets[widgets[w]].style.top = wRect.top + 'px'; this.views[view].widgets[widgets[w]].style.left = wRect.left + 'px';