diff --git a/CONTROL/control b/CONTROL/control index 2f9ad73..72924a8 100644 --- a/CONTROL/control +++ b/CONTROL/control @@ -1,7 +1,7 @@ Package: webif Priority: optional Section: web -Version: 1.2.3-1 +Version: 1.2.3-2 Architecture: mipsel Maintainer: af123@hummypkg.org.uk Depends: webif-channelicons(>=1.1.18),lighttpd(>=1.4.35-2),jim(>=0.76),jim-oo,jim-sqlite3(>=0.76),jim-cgi(>=0.7),jim-binary(>=0.76),service-control(>=2.1),busybox(>=1.20.2-1),lsof(>=4.87),epg(>=1.2.0),hmt(>=2.0.3),ssmtp,anacron,trm(>=1.1),openssl-command,nicesplice,id3v2,file,rsvsync(>=1.0.2),webif-charts(>=1.2-1),stripts(>=1.2.5-3),smartmontools,tmenu(>=1.08),ffmpeg,id3v2,multienv(>=1.6),tcpping(>=1.1),e2fsprogs,wireless-tools(>=29-1),dbupdate,recmon(>2.0.3-3),auto-unprotect(>=2.0.0-1) diff --git a/webif/html/edit/script.js b/webif/html/edit/script.js index 5e03f2e..c068b18 100644 --- a/webif/html/edit/script.js +++ b/webif/html/edit/script.js @@ -19,7 +19,15 @@ function loadfile(f) $('#editor').disable().val(''); $('#msg').text('Loading ' + f); $.get('get.jim?file=' + encodeURIComponent(f), function(data) { - if (data.match('^>>>')) + if (data.match('>>>.*does not exist')) + { + $('#msg').text(data); + $('#editor').val('').enable(); + $('button.editactive').enable(); + file = f; + changed = false; + } + else if (data.match('^>>>')) { $('#msg').text(data); file = null;