diff options
Diffstat (limited to 'did-controller.lua')
-rw-r--r-- | did-controller.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/did-controller.lua b/did-controller.lua index a2a16f9..7b27837 100644 --- a/did-controller.lua +++ b/did-controller.lua @@ -28,6 +28,10 @@ function createdefinition(self) return controllerfunctions.handle_form(self, self.model.getdefinition, self.model.savedefinition, self.clientdata, "Save", "Create Definition", "Definition Created") end +function assigndefinition(self) + return controllerfunctions.handle_form(self, self.model.getdefinition, self.model.updatedefinition, self.clientdata, "Save", "Assign Definition", "Definition Saved") +end + function newdefinition(self) local retval = controllerfunctions.handle_form(self, self.model.getunuseddefinition, self.model.setunuseddefinition, self.clientdata, "Select", "Create New Definition") if retval.value.did and not retval.errtxt then |