From d1acd60d5aaea52ca771ecb4e45ff51e25b885fb Mon Sep 17 00:00:00 2001 From: Carlos Jimenez Ruiz Date: Tue, 24 Sep 2019 13:22:01 +0200 Subject: [PATCH 1/2] added a precise selector #1680 --- front/core/components/popover/popover.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/core/components/popover/popover.js b/front/core/components/popover/popover.js index 38f566135..0041a8413 100644 --- a/front/core/components/popover/popover.js +++ b/front/core/components/popover/popover.js @@ -77,8 +77,8 @@ export default class Popover extends Component { let isDescriptorMoreMenu = parent && parent.attributes[0].nodeValue == 'more-button'; let leftMenu = this.document.querySelector('div[class="menu left"]'); if (isDescriptorMoreMenu && leftMenu) { + let descriptorDiv = this.document.querySelector('vn-side-menu div[class="vn-descriptor"]'); let leftMenuWidth = leftMenu.offsetWidth; - let descriptorDiv = this.document.querySelector('vn-side-menu div'); let descriptorWidth = descriptorDiv.offsetWidth; this.scrollbarWidth = leftMenuWidth - descriptorWidth; From d56c7ff5406467624e51fe68b7522ff85046f0ba Mon Sep 17 00:00:00 2001 From: Carlos Jimenez Ruiz Date: Tue, 24 Sep 2019 13:25:18 +0200 Subject: [PATCH 2/2] #1727 ticlet.line foco en cambiar hora --- modules/ticket/front/descriptor/index.html | 3 ++- modules/ticket/front/descriptor/index.js | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/ticket/front/descriptor/index.html b/modules/ticket/front/descriptor/index.html index 897f58cb2..07e0217c0 100644 --- a/modules/ticket/front/descriptor/index.html +++ b/modules/ticket/front/descriptor/index.html @@ -168,13 +168,14 @@
Change shipped hour
- +
diff --git a/modules/ticket/front/descriptor/index.js b/modules/ticket/front/descriptor/index.js index 6f014741d..c3bbb89f9 100644 --- a/modules/ticket/front/descriptor/index.js +++ b/modules/ticket/front/descriptor/index.js @@ -297,6 +297,10 @@ class Controller { ); } } + + focusInput() { + this.$scope.newShipped.focus(); + } } Controller.$inject = ['$state', '$scope', '$http', 'vnApp', '$translate', 'aclService'];