diff options
author | Tony Anderson <tony@traveler.(none)> | 2011-03-27 07:32:45 (GMT) |
---|---|---|
committer | Tony Anderson <tony@traveler.(none)> | 2011-03-27 07:32:45 (GMT) |
commit | eed892db7cd85872c629af5e70e86375116a5498 (patch) | |
tree | a9b7a9d2867b5676b39f64930f8ed7ab88a237e4 /contentedit.html | |
parent | 311b170b59299a77d7cccdd46853a97d98c4fcb2 (diff) |
version 12.14
Diffstat (limited to 'contentedit.html')
-rwxr-xr-x | contentedit.html | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/contentedit.html b/contentedit.html index 9e18f83..a439b42 100755 --- a/contentedit.html +++ b/contentedit.html @@ -12,9 +12,12 @@ host = 'http://localhost:8008/' url = window.location+''; parts = url.split('?'); parts.shift(); -openfile = parts[0]; -items = openfile.split('/'); +temp = parts[0]; +items = temp.split('/'); items.pop(); +items.shift(); +items.shift(); +items.shift(); openfolder = items.join('/')+'/'; openfile = openfolder + 'source.txt'; tinyMCE.init({ @@ -39,7 +42,6 @@ $(document).ready(function(){ {'openfile':openfile}, function(responseTxt, status, xhr){ $('#cntnt').text(responseTxt); - alert($('#content').html()); }); }); |