diff options
-rw-r--r-- | shorewall-controller.lua | 2 | ||||
-rw-r--r-- | shorewall-listfiles-html.lsp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/shorewall-controller.lua b/shorewall-controller.lua index 0300bd1..da88e40 100644 --- a/shorewall-controller.lua +++ b/shorewall-controller.lua @@ -39,7 +39,7 @@ function listfiles(self) end function edit(self) - return controllerfunctions.handle_form(self, function() return self.model.getfiledetails(self.clientdata.filename) end, self.model.updatefiledetails, self.clientdata, "Save", "Edit File", "File Saved", "listfiles") + return controllerfunctions.handle_form(self, function() return self.model.getfiledetails(self.clientdata.filename) end, self.model.updatefiledetails, self.clientdata, "Save", "Edit File", "File Saved") end function check(self) diff --git a/shorewall-listfiles-html.lsp b/shorewall-listfiles-html.lsp index df002b2..031839c 100644 --- a/shorewall-listfiles-html.lsp +++ b/shorewall-listfiles-html.lsp @@ -9,7 +9,7 @@ io.write("</span>") --]] %> -<% displaycommandresults({"check"}, session) %> +<% displaycommandresults({"edit", "check"}, session) %> <% if viewlibrary and viewlibrary.dispatch_component then viewlibrary.dispatch_component("status") @@ -27,7 +27,7 @@ end %> <% for i,file in ipairs(data.value) do %> <TR> - <TD style="padding-right:20px;white-space:nowrap;"><%= html.link{value = "edit?filename=" .. file.filename, label=file.filename} %></TD> + <TD style="padding-right:20px;white-space:nowrap;"><%= html.link{value = "edit?filename=" .. file.filename.."&redir="..page_info.orig_action, label=file.filename} %></TD> <TD style="padding-right:20px;white-space:nowrap;"><%= file.filesize %></TD> <TD style="white-space:nowrap;" width="90%"><%= file.mtime %></TD> </TR> |