diff options
author | Ted Trask <ttrask01@yahoo.com> | 2010-04-07 08:07:06 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2010-04-07 08:07:06 +0000 |
commit | f34b36531959c92248da93db8151d9a5c393a293 (patch) | |
tree | da6b9d0b6f584ff91e30a8678ebbdd9a09f4a687 | |
parent | 62e2a9e093e3acbbeb96b63dc3f9e2c2c20cf69d (diff) | |
download | acf-did-f34b36531959c92248da93db8151d9a5c393a293.tar.bz2 acf-did-f34b36531959c92248da93db8151d9a5c393a293.tar.xz |
Automatically publish changes, change order of editdefinition buttons.
-rw-r--r-- | did-editdefinition-html.lsp | 2 | ||||
-rw-r--r-- | did-model.lua | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/did-editdefinition-html.lsp b/did-editdefinition-html.lsp index 8c46f35..330f6bb 100644 --- a/did-editdefinition-html.lsp +++ b/did-editdefinition-html.lsp @@ -151,6 +151,6 @@ else %> <H2>Save Changes</H2> <DL> -<DT></DT><DD><input class="submit" type="submit" name="Cancel" value="Cancel"></DD> <DT></DT><DD><input class="submit" type="submit" name="Test" value="Test"></DD> +<DT></DT><DD><input class="submit" type="submit" name="Cancel" value="Cancel"></DD> <% displayformend(form) %> diff --git a/did-model.lua b/did-model.lua index 0bb88c2..d817a37 100644 --- a/did-model.lua +++ b/did-model.lua @@ -862,6 +862,8 @@ function savedefinition(defin, test, exists) defin.descr = defin.descr.." no change" end defin.errtxt = nil + -- Publish the change immediately + publishdefinition(definition.did) end if connected then databasedisconnect() end end) @@ -962,7 +964,7 @@ function publishdefinition(did) publishrules(did, rules) errtxt = nil result = "Published DID rules" - logme("Published DID "..did) + --logme("Published DID "..did) break end end |