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