Skip to content

Commit 1f0d8fe

Browse files
committed
Merge pull request joni2back#123 from durasj/click-changes
Fix editing not working
2 parents b825908 + d98beed commit 1f0d8fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/js/services/apimiddleware.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@
6060
return this.apiHandler.getContent(fileManagerConfig.getContentUrl, itemPath);
6161
};
6262

63-
ApiMiddleware.prototype.edit = function(item, content) {
63+
ApiMiddleware.prototype.edit = function(item) {
6464
var itemPath = this.getFilePath(item);
65-
return this.apiHandler.edit(fileManagerConfig.editUrl, itemPath, content);
65+
return this.apiHandler.edit(fileManagerConfig.editUrl, itemPath, item.tempModel.content);
6666
};
6767

6868
ApiMiddleware.prototype.rename = function(item) {

0 commit comments

Comments
 (0)