diff --git a/editor/sahliedit.litcoffee b/editor/sahliedit.litcoffee
index 733fa25..10fe045 100644
--- a/editor/sahliedit.litcoffee
+++ b/editor/sahliedit.litcoffee
@@ -25,7 +25,7 @@ possible to overflow this by using a debugger and such. As the purpose of this
is limited, and this should NOT be put on a live website, I feel that is ok for
now. Perhaps I will fix it after Revision.
-***
+***
== Create Initial crappage
We need to make a screen that has a few things in it for starters
@@ -40,12 +40,12 @@ Create buttos to choose between the New and Load functionalities
(If someone wants to do that, they can restart with F5 or something.)
Also hide the editor until needed, and initialize some elements.
- $(->
+ $(->
$("#newsahli")
.button { disabled: false}
.click -> newsahli()
)
-
+
$(->
$("#loadsahli")
.button { disabled: false}
@@ -133,8 +133,9 @@ does not alter the array. Alternately, _have_ it alter the array.
buildlist: (data) ->
$('#list').show 100
- $('#sortlist').append @.additem item for item in @data.filedata
- $('#sortlist').sortable
+ x = 0
+ $('#sortlist').append @.additem item,x++ for item in @data.filedata
+ $('#sortlist').sortable
start: (event,ui) ->
ui.item.data {startpos:ui.item.index()}
stop: (event,ui) =>
@@ -154,12 +155,12 @@ insert it into the array at end position. A la the draggon-dropping.
tarr[0...endpos].concat [moving].concat tarr[endpos..-1]
- additem: (item) ->
+ additem: (item,pos) ->
entry = $("