mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-06 16:46:48 +01:00
Don't reload MD files
Stick with the Markdown parsed version shown via editing.
This commit is contained in:
@@ -267,8 +267,8 @@ if ($_GET['action']=="save") {
|
||||
echo '<script>top.ICEcoder.selectedFiles=[];top.ICEcoder.updateFileManagerList(\'add\',\''.$fileLoc.'\',\''.$fileName.'\');';
|
||||
echo 'top.ICEcoder.renameTab(top.ICEcoder.selectedTab,\''.$fileLoc."/".$fileName.'\');</script>';
|
||||
}
|
||||
// Reload stickytab window
|
||||
echo '<script>if (top.ICEcoder.stickyTab.location) {top.ICEcoder.stickyTab.location.reload()};action="doneSave";</script>';
|
||||
// Reload stickytab window if not a Markdown file
|
||||
echo '<script>if (top.ICEcoder.stickyTab.location && top.ICEcoder.stickyTab.location.pathname.indexOf(".md")==-1) {top.ICEcoder.stickyTab.location.reload()};action="doneSave";</script>';
|
||||
} else {
|
||||
$loadedFile = file_get_contents($file);
|
||||
echo '<textarea name="loadedFile" id="loadedFile">'.str_replace("</textarea>","<ICEcoder:/:textarea>",htmlentities($loadedFile)).'</textarea>';
|
||||
|
||||
Reference in New Issue
Block a user