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;
$('#list').show(100);
x = 0;
$('#dirlocation').val(this.data.location);
_ref = this.data.filedata;
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
item = _ref[_i];

View file

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