Improved text module.

This commit is contained in:
Martin Edenhofer 2012-10-23 11:19:13 +02:00
parent 737f24c161
commit 2023ce00b5

View file

@ -149,7 +149,7 @@ class App.TextModuleUI extends App.Controller
type: 'TextModule', type: 'TextModule',
sortBy: 'name', sortBy: 'name',
filter: { active: true }, filter: { active: true },
filterExtended: [ { name: search }, { content: search }, { keywords: search } ], filterExtended: [ { name: "^#{search}" }, { content: search }, { keywords: search } ],
) )
renderTable: (search) => renderTable: (search) =>
@ -237,6 +237,7 @@ class App.TextModuleUI extends App.Controller
ui = @ ui = @
text_module.save( text_module.save(
success: -> success: ->
ui.el.find('#text_module_name').val('')
ui.renderTable() ui.renderTable()
ui.log 'save success!' ui.log 'save success!'