From e3599a446ffa6b052ac9f10aa07f9515ec81d5f4 Mon Sep 17 00:00:00 2001 From: Howland Owl Date: Tue, 15 Apr 2014 18:57:23 +0300 Subject: [PATCH] Sortable elements --- editor/sahliedit.css | 14 ++++++++++++++ editor/sahliedit.litcoffee | 7 +++++-- editor/sahlieditor.html | 1 - 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/editor/sahliedit.css b/editor/sahliedit.css index 6a8d143..cdc0dab 100644 --- a/editor/sahliedit.css +++ b/editor/sahliedit.css @@ -27,4 +27,18 @@ label { #list { border: 1px solid black; +} + +.entry { + margin: 0 3px 3px 3px; + padding: 0.4em; + padding-left: 1.5em; + width: 75%; + height: 18px; + border: 2px outset rgb(255,228,196); + background-color: rgb(245,245,220); +} + +.entry span { + display: inline-block; } \ No newline at end of file diff --git a/editor/sahliedit.litcoffee b/editor/sahliedit.litcoffee index 1990c5a..fcc3dd4 100644 --- a/editor/sahliedit.litcoffee +++ b/editor/sahliedit.litcoffee @@ -113,10 +113,13 @@ edit button. buildlist: (data) -> $('#list').show 100 - @.additem item for item in @data.filedata + $('#sortlist').append @.additem item for item in @data.filedata + $('#sortlist').sortable().disableSelection() + additem: (item) -> - alert dumpjson item + $("
  • #{item.author} : #{item.name} : #{item.file}
  • ") + editline: (data) -> $("#formica").dialog { diff --git a/editor/sahlieditor.html b/editor/sahlieditor.html index c7a5b19..d933d68 100644 --- a/editor/sahlieditor.html +++ b/editor/sahlieditor.html @@ -18,7 +18,6 @@