Merge branch 'develop' of github.com:martini/zammad into develop
This commit is contained in:
commit
ea30b734ad
4 changed files with 29 additions and 23 deletions
|
@ -142,7 +142,10 @@ class App.TicketCreate extends App.Controller
|
||||||
@latestTitle = title
|
@latestTitle = title
|
||||||
App.TaskManager.touch(@task_key)
|
App.TaskManager.touch(@task_key)
|
||||||
|
|
||||||
@interval(update, 3000, @id)
|
@el.on('change.local blur.local keyup.local paste.local input.local', 'form, .js-textarea', (e) =>
|
||||||
|
@delay(update, 250, 'ticket-create-form-update')
|
||||||
|
)
|
||||||
|
@delay(update, 800, 'ticket-create-form-update')
|
||||||
|
|
||||||
# get data / in case also ticket data for split
|
# get data / in case also ticket data for split
|
||||||
buildScreen: (params) =>
|
buildScreen: (params) =>
|
||||||
|
|
|
@ -100,7 +100,7 @@ class App.TicketZoom extends App.Controller
|
||||||
@activeState = true
|
@activeState = true
|
||||||
|
|
||||||
# start autosave
|
# start autosave
|
||||||
@delay(@autosaveStart, 800, "ticket-zoom-auto-save-#{@ticket_id}")
|
@autosaveStart()
|
||||||
|
|
||||||
# if ticket is shown the first time
|
# if ticket is shown the first time
|
||||||
if !@shown
|
if !@shown
|
||||||
|
@ -428,6 +428,7 @@ class App.TicketZoom extends App.Controller
|
||||||
@el.on('change.local blur.local keyup.local paste.local input.local', 'form, .js-textarea', (e) =>
|
@el.on('change.local blur.local keyup.local paste.local input.local', 'form, .js-textarea', (e) =>
|
||||||
@delay(update, 250, 'ticket-zoom-form-update')
|
@delay(update, 250, 'ticket-zoom-form-update')
|
||||||
)
|
)
|
||||||
|
@delay(update, 800, 'ticket-zoom-form-update')
|
||||||
|
|
||||||
currentStore: =>
|
currentStore: =>
|
||||||
return if !@ticket
|
return if !@ticket
|
||||||
|
|
|
@ -23,6 +23,7 @@ class Channel::EmailParser
|
||||||
cc: 'Somebody <somebody@example.com>',
|
cc: 'Somebody <somebody@example.com>',
|
||||||
subject: 'some message subject',
|
subject: 'some message subject',
|
||||||
body: 'some message body',
|
body: 'some message body',
|
||||||
|
date: Time.zone.now,
|
||||||
attachments: [
|
attachments: [
|
||||||
{
|
{
|
||||||
data: 'binary of attachment',
|
data: 'binary of attachment',
|
||||||
|
|
|
@ -102,6 +102,7 @@ class String
|
||||||
|
|
||||||
# remove style tags with content
|
# remove style tags with content
|
||||||
string.gsub!(%r{<style(|\s.+?)>(.+?)</style>}im, '')
|
string.gsub!(%r{<style(|\s.+?)>(.+?)</style>}im, '')
|
||||||
|
|
||||||
# remove empty lines
|
# remove empty lines
|
||||||
string.gsub!(/^\s*/m, '')
|
string.gsub!(/^\s*/m, '')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue