Fix editor to work without a webserver running (dev mode)

This commit is contained in:
Iam Naughton Phier 2014-08-07 16:29:45 +03:00
parent e1c14acd3f
commit d0f5a09f45
4 changed files with 1211 additions and 16 deletions

View file

@ -1,6 +1,6 @@
// Generated by CoffeeScript 1.7.1
(function() {
var Sahli, ansiorascii, arraytocolor, booltoint, colorindex, colortoarray, colortoname, dec2hex, dumpjson, emptyfiledef, hex2dec, inttobool, loadsahli, newsahli, resolvefiletype, sahlicolor, statustobool;
var Sahli, ansiorascii, arraytocolor, booltoint, colorindex, colortoarray, colortoname, dec2hex, dumpjson, emptyfiledef, getfilelist, hex2dec, inttobool, loadsahli, newsahli, resolvefiletype, sahlicolor, statustobool;
$(function() {
return $("h1").hide().slideDown(500);
@ -145,11 +145,9 @@
icons: {
primary: "ui-icon-folder-open"
}
}).click((function(_this) {
return function() {
return alert('clicked');
};
})(this));
}).click(function() {
return getfilelist();
});
$('#listappend').button({
icons: {
primary: "ui-icon-1-n"
@ -470,6 +468,14 @@
});
};
getfilelist = function() {
var location;
location = $("#dirlocation").val();
return $.get("../" + location, function(listing) {
return console.log(listing);
});
};
newsahli = function() {
var newentry, sahli;
sahli = new Sahli;