Просмотр исходного кода

Fixes #3457 - Ticket Zoom is not working correctly with iPhone

Martin Edenhofer 4 лет назад
Родитель
Сommit
53ceb9de9d

+ 1 - 1
app/assets/javascripts/app/controllers/_dashboard/first_steps_clues.coffee

@@ -192,7 +192,7 @@ class App.FirstStepsClues extends App.Controller
     maxHeight = $(window).height()
 
     # try to place it parallel to the larger side
-    if target.height > target.width && window.matchMedia('(min-width: 768px').matches
+    if target.height > target.width && window.matchMedia('(min-width: 768px)').matches
       # try to place it aside
       # prefer right
       if target.right + modal.width <= maxWidth

+ 1 - 1
app/assets/javascripts/app/controllers/agent_ticket_create.coffee

@@ -173,7 +173,7 @@ class App.TicketCreate extends App.Controller
     @controllerBind('ticket_create_rerender', (template) => @renderQueue(template))
 
     # initially hide sidebar on mobile
-    if window.matchMedia('(max-width: 767px').matches
+    if window.matchMedia('(max-width: 767px)').matches
       @sidebar.addClass('is-closed')
       @sidebarSpacer.addClass('is-closed')
 

+ 1 - 1
app/assets/javascripts/app/controllers/ticket_zoom.coffee

@@ -249,7 +249,7 @@ class App.TicketZoom extends App.Controller
     App.OnlineNotification.seen('Ticket', @ticket_id)
 
     # initially hide on mobile
-    if window.matchMedia('(max-width: 767px').matches
+    if window.matchMedia('(max-width: 767px)').matches
       @el.find('.tabsSidebar').addClass('is-closed')
       @el.find('.tabsSidebar-sidebarSpacer').addClass('is-closed')