load location into location input field

This commit is contained in:
Iam Naughton Phier 2014-08-06 15:38:53 +03:00
parent 61686c559c
commit dcadf74d55
3 changed files with 323 additions and 308 deletions

View file

@ -120,6 +120,7 @@
var item, x, _i, _len, _ref; var item, x, _i, _len, _ref;
$('#list').show(100); $('#list').show(100);
x = 0; x = 0;
$('#dirlocation').val(this.data.location);
_ref = this.data.filedata; _ref = this.data.filedata;
for (_i = 0, _len = _ref.length; _i < _len; _i++) { for (_i = 0, _len = _ref.length; _i < _len; _i++) {
item = _ref[_i]; item = _ref[_i];

View file

@ -139,6 +139,7 @@ does not alter the array. Alternately, _have_ it alter the array.
buildlist: (data) -> buildlist: (data) ->
$('#list').show 100 $('#list').show 100
x = 0 x = 0
$('#dirlocation').val @data.location
$('#sortlist').append @.additem item,x++ for item in @data.filedata $('#sortlist').append @.additem item,x++ for item in @data.filedata
$('#sortlist').sortable $('#sortlist').sortable
start: (event,ui) -> start: (event,ui) ->

View file

@ -5,33 +5,35 @@
"template": "template.html", "template": "template.html",
"css": "template.css" "css": "template.css"
}, },
"filedata": [{ "filedata": [
{
"file": "spaceflight.asc", "file": "spaceflight.asc",
"name": "Spaceflight", "name": "Spaceflight",
"filetype":"plain", "filetype": "plain",
"amiga": true, "amiga": true,
"width": "80", "width": "80",
"author": "Urs", "author": "Urs",
"font": "Propaz", "font": "Propaz",
"color": [ "color": [
200, 255,
200, 255,
200, 0,
255 0
], ],
"bg": [ "bg": [
0, 11,
0, 11,
0, 59,
0 0
], ],
"line1": "Revision 2013", "line1": "Revision 2013",
"line2": "Mercury", "line2": "Mercury",
"text": "No tools, just a text editor" "text": "No tools, just a text editor"
}, { },
{
"file": "az0!-revi510n.txt", "file": "az0!-revi510n.txt",
"name": "Revi510n", "name": "Revi510n",
"filetype":"plain", "filetype": "plain",
"amiga": true, "amiga": true,
"width": "80", "width": "80",
"color": [ "color": [
@ -51,10 +53,11 @@
"line1": "Revision 2013", "line1": "Revision 2013",
"line2": "Madwizards+Floppy", "line2": "Madwizards+Floppy",
"text": "Wow I'm back to ascii scene after 12 years break. Have fun people! Amiiiiiiga :)" "text": "Wow I'm back to ascii scene after 12 years break. Have fun people! Amiiiiiiga :)"
}, { },
{
"file": "ted_-_spaceship_enterprise.ans", "file": "ted_-_spaceship_enterprise.ans",
"name": "SPACEshiP ENterprISe", "name": "SPACEshiP ENterprISe",
"filetype":"ansi", "filetype": "ansi",
"amiga": false, "amiga": false,
"width": "80", "width": "80",
"color": [ "color": [
@ -74,10 +77,11 @@
"line1": "Revision 2013", "line1": "Revision 2013",
"line2": "Pöo-crüe^3ln", "line2": "Pöo-crüe^3ln",
"text": "Special greets to m0d - you're AWESOME! -\nThis displays more nicely in 80x50 mode\nTruck said it was OK to do that mode outside the rules\nProper resolution in Partymeister" "text": "Special greets to m0d - you're AWESOME! -\nThis displays more nicely in 80x50 mode\nTruck said it was OK to do that mode outside the rules\nProper resolution in Partymeister"
}, { },
{
"file": "h7-supergroupies.ans", "file": "h7-supergroupies.ans",
"name": "Super Groupies", "name": "Super Groupies",
"filetype":"ansi", "filetype": "ansi",
"amiga": false, "amiga": false,
"width": "80", "width": "80",
"color": [ "color": [
@ -97,10 +101,11 @@
"line1": "Revision 2013", "line1": "Revision 2013",
"line2": "Blocktronics & Accession", "line2": "Blocktronics & Accession",
"text": "Pablodraw osX" "text": "Pablodraw osX"
}, { },
{
"file": "51_DRGN.XB", "file": "51_DRGN.XB",
"name": "51 Dragon", "name": "51 Dragon",
"filetype":"xbin", "filetype": "xbin",
"amiga": false, "amiga": false,
"width": "80", "width": "80",
"color": [ "color": [
@ -120,10 +125,11 @@
"line1": "CIA Pack 62", "line1": "CIA Pack 62",
"line2": "", "line2": "",
"text": "16colors archive" "text": "16colors archive"
}, { },
{
"file": "ARTX-LGO.ADF", "file": "ARTX-LGO.ADF",
"name": "example ADF", "name": "example ADF",
"filetype":"adf", "filetype": "adf",
"amiga": false, "amiga": false,
"width": "120", "width": "120",
"color": [ "color": [
@ -143,10 +149,11 @@
"line1": "ADF example", "line1": "ADF example",
"line2": "...", "line2": "...",
"text": "not Amiga disk file" "text": "not Amiga disk file"
}, { },
{
"file": "US-SADIS.BIN", "file": "US-SADIS.BIN",
"name": "bin example", "name": "bin example",
"filetype":"bin", "filetype": "bin",
"amiga": false, "amiga": false,
"width": "120", "width": "120",
"color": [ "color": [
@ -166,10 +173,11 @@
"line1": "BIN example", "line1": "BIN example",
"line2": "...", "line2": "...",
"text": "whee" "text": "whee"
}, { },
{
"file": "zv_iniq.tnd", "file": "zv_iniq.tnd",
"name": "tundra example", "name": "tundra example",
"filetype":"tundra`", "filetype": "tundra",
"amiga": false, "amiga": false,
"width": "120", "width": "120",
"color": [ "color": [
@ -189,10 +197,11 @@
"line1": "Tundra example", "line1": "Tundra example",
"line2": "...", "line2": "...",
"text": "more examples" "text": "more examples"
}, { },
{
"file": "MD-XMAS.IDF", "file": "MD-XMAS.IDF",
"name": "IDF example", "name": "IDF example",
"filetype":"idf", "filetype": "idf",
"amiga": false, "amiga": false,
"width": "120", "width": "120",
"color": [ "color": [
@ -212,10 +221,11 @@
"line1": "Xmas (ivf example)", "line1": "Xmas (ivf example)",
"line2": "...", "line2": "...",
"text": "more examples" "text": "more examples"
}, { },
{
"file": "example.avatar", "file": "example.avatar",
"name": "AVATAR example", "name": "AVATAR example",
"filetype":"avatar", "filetype": "avatar",
"amiga": false, "amiga": false,
"width": "80", "width": "80",
"color": [ "color": [
@ -235,10 +245,11 @@
"line1": "an avatar file", "line1": "an avatar file",
"line2": "...", "line2": "...",
"text": "more examples" "text": "more examples"
}, { },
{
"file": "pcboard.pcboard", "file": "pcboard.pcboard",
"name": "PCBoard example", "name": "PCBoard example",
"filetype":"pcboard", "filetype": "pcboard",
"amiga": false, "amiga": false,
"width": "120", "width": "120",
"color": [ "color": [
@ -258,10 +269,11 @@
"line1": "PCBOARD example", "line1": "PCBOARD example",
"line2": "...", "line2": "...",
"text": "more examples" "text": "more examples"
}, { },
{
"file": "example.ICE", "file": "example.ICE",
"name": "ICE example", "name": "ICE example",
"filetype":"ice", "filetype": "ice",
"amiga": false, "amiga": false,
"width": "120", "width": "120",
"color": [ "color": [
@ -281,11 +293,11 @@
"line1": "ICE example", "line1": "ICE example",
"line2": "...", "line2": "...",
"text": "more examples" "text": "more examples"
},
}, { {
"file": "51_EMP.XB", "file": "51_EMP.XB",
"name": "WIDE xbin", "name": "WIDE xbin",
"filetype":"xbin", "filetype": "xbin",
"amiga": false, "amiga": false,
"width": "120", "width": "120",
"color": [ "color": [
@ -305,5 +317,6 @@
"line1": "wide XBIN", "line1": "wide XBIN",
"line2": "...", "line2": "...",
"text": "wide XBIN example" "text": "wide XBIN example"
}] }
]
} }