diff --git a/app/assets/javascripts/app/controllers/_application_controller.js.coffee b/app/assets/javascripts/app/controllers/_application_controller.js.coffee index 3e6313fc3..106ced9c9 100644 --- a/app/assets/javascripts/app/controllers/_application_controller.js.coffee +++ b/app/assets/javascripts/app/controllers/_application_controller.js.coffee @@ -462,14 +462,13 @@ class App.Controller extends Spine.Controller class App.ControllerPermanent extends App.Controller constructor: -> super - $('.content').hide() - + $('.content').attr('style', 'display: none!important') class App.ControllerContent extends App.Controller constructor: -> super - $('.content').hide() - $('#content').show() + $('.content').attr('style', 'display: none!important') + $('#content').attr('style', 'display: flex!important') @navShow() class App.ControllerModal extends App.Controller diff --git a/app/assets/javascripts/app/controllers/ticket_zoom.js.coffee b/app/assets/javascripts/app/controllers/ticket_zoom.js.coffee index 4852430a4..a1ee5a3eb 100644 --- a/app/assets/javascripts/app/controllers/ticket_zoom.js.coffee +++ b/app/assets/javascripts/app/controllers/ticket_zoom.js.coffee @@ -178,7 +178,7 @@ class App.TicketZoom extends App.Controller new ArticleView( ticket: @ticket ticket_article_ids: @ticket_article_ids - el: @el.find('.article-view') + el: @el.find('.ticket-article') ui: @ ) @@ -186,7 +186,7 @@ class App.TicketZoom extends App.Controller # show edit new Edit( ticket: @ticket - el: @el.find('.edit') + el: @el.find('.ticket-edit') edit_form: @edit_form task_key: @task_key ui: @ @@ -433,9 +433,9 @@ class Edit extends App.Controller if !@autosaveLast || ( diff && !_.isEmpty( diff ) ) @autosaveLast = currentData @log 'notice', 'form hash changed', diff, currentData - @el.find('.ticket-edit').addClass('form-changed') - @el.find('.ticket-edit').find('.reset-message').show() - @el.find('.ticket-edit').find('.reset-message').removeClass('hide') + @el.find('.edit').addClass('form-changed') + @el.find('.edit').find('.reset-message').show() + @el.find('.edit').find('.reset-message').removeClass('hide') App.TaskManager.update( @task_key, { 'state': currentData }) @interval( update, 3000, 'autosave' ) diff --git a/app/assets/javascripts/app/lib/app_post/browser.coffee b/app/assets/javascripts/app/lib/app_post/browser.coffee index 6b5559ed1..109f35a0d 100644 --- a/app/assets/javascripts/app/lib/app_post/browser.coffee +++ b/app/assets/javascripts/app/lib/app_post/browser.coffee @@ -9,31 +9,31 @@ class App.Browser data = @detection() # disable Crome 13 and older - if data.browser == 'Chrome' && data.version <= 13 + if data.browser == 'Chrome' && data.version <= 20 @message(data) console.log('Browser not supported') return false # disable Firefox 9 and older - else if data.browser == 'Firefox' && data.version <= 9 + else if data.browser == 'Firefox' && data.version <= 27 @message(data) console.log('Browser not supported') return false # disable IE 8 and older - else if data.browser == 'Explorer' && data.version <= 8 + else if data.browser == 'Explorer' && data.version <= 9 @message(data) console.log('Browser not supported') return false # disable Safari 3 and older - else if data.browser == 'Safari' && data.version <= 3 + else if data.browser == 'Safari' && data.version <= 6 @message(data) console.log('Browser not supported') return false # disable Opera 10 and older - else if data.browser == 'Opera' && data.version <= 10 + else if data.browser == 'Opera' && data.version <= 21 @message(data) console.log('Browser not supported') return false diff --git a/app/assets/javascripts/app/lib/app_post/interface_handle.js.coffee b/app/assets/javascripts/app/lib/app_post/interface_handle.js.coffee index a11b81903..64d2d9cab 100644 --- a/app/assets/javascripts/app/lib/app_post/interface_handle.js.coffee +++ b/app/assets/javascripts/app/lib/app_post/interface_handle.js.coffee @@ -47,7 +47,7 @@ class App.Run extends App.Controller App.Event.trigger( event + ':ready') class App.Content extends App.Controller - className: 'content flex' + className: 'content flex horizontal' constructor: -> super diff --git a/app/assets/javascripts/app/lib/app_post/task_manager.js.coffee b/app/assets/javascripts/app/lib/app_post/task_manager.js.coffee index 87de8bb71..4a710a3d1 100644 --- a/app/assets/javascripts/app/lib/app_post/task_manager.js.coffee +++ b/app/assets/javascripts/app/lib/app_post/task_manager.js.coffee @@ -151,7 +151,8 @@ class _taskManagerSingleton extends App.Controller $('#content').empty() # hide all tasks - $('.content').hide() + $('.content').attr('style', 'display: none!important') + #$('.content').hide() $('.content').removeClass('active') # create div for task if not exists @@ -160,10 +161,12 @@ class _taskManagerSingleton extends App.Controller # set task to shown and active if @activeTask is key - $('#content_permanent_' + key ).show() + #$('#content_permanent_' + key ).show() + $('#content_permanent_' + key).attr('style', 'display: flex!important') $('#content_permanent_' + key ).addClass('active') else - $('#content_permanent_' + key ).hide() + #$('#content_permanent_' + key ).hide() + $('#content_permanent_' + key).attr('style', 'display: none!important') $('#content_permanent_' + key ).removeClass('active') # set all tasks to active false, only new/selected one to active diff --git a/app/assets/javascripts/app/views/agent_ticket_create.jst.eco b/app/assets/javascripts/app/views/agent_ticket_create.jst.eco index f6514f22c..c61b5549e 100644 --- a/app/assets/javascripts/app/views/agent_ticket_create.jst.eco +++ b/app/assets/javascripts/app/views/agent_ticket_create.jst.eco @@ -1,26 +1,24 @@ -