Bugfix: not saving filetype / always 'plain'

- changed to switch statement for the routines
This commit is contained in:
Iam Naughton Phier 2014-08-08 00:22:08 +03:00
parent d0f5a09f45
commit 402df015a4
3 changed files with 35 additions and 44 deletions

View file

@ -104,20 +104,6 @@ a html template, and a css file.
class Sahli
constructor: ->
@emptyfiledef = new emptyfiledef
@bob = {
"file": "",
"name": "",
"amiga": true,
"filetype": 'plain',
"width": "",
"author": "",
"font": "Propaz",
"color": [ 0,0,0,0 ],
"bg": [ 0,0,0,0 ],
"line1": "",
"line2": "",
"text": ""
}
@emptyslidesdef = {
"background": "",
"template": "",
@ -233,6 +219,7 @@ insert it into the array at end position. A la the draggon-dropping.
entry.line2 = $("#entryline2").val()
entry.text = $("#entrytext").val()
entry.file = $("#entryfile").val()
entry.filetype = $("#entryfiletype").val()
@buildlist @data
editline: (data,pos) ->