Improved text module.
This commit is contained in:
parent
737f24c161
commit
2023ce00b5
1 changed files with 2 additions and 1 deletions
|
@ -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!'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue