diff --git a/module/file/control.php b/module/file/control.php
index 5320c04355..aee24d9940 100644
--- a/module/file/control.php
+++ b/module/file/control.php
@@ -341,12 +341,10 @@ class file extends control
/* Update test case version for test case synchronization. */
if($file->objectType == 'testcase' and $file->title != $fileName) $this->file->updateTestcaseVersion($file);
+ $newFile = $this->file->getByID($fileID);
- return print(js::reload('parent.parent'));
+ echo json_encode($newFile);
}
-
- $this->view->file = $this->file->getById($fileID);
- $this->display();
}
/**
diff --git a/module/file/view/edit.html.php b/module/file/view/edit.html.php
deleted file mode 100644
index 1329925822..0000000000
--- a/module/file/view/edit.html.php
+++ /dev/null
@@ -1,62 +0,0 @@
-
- * @package file
- * @version $Id$
- * @link http://www.zentao.net
- */
-?>
-
-
-
-file->inputFileName;?>
-