[open-ils-commits] [GIT] Evergreen ILS branch master updated. 38411f209cb0b658f08d9040f2f04fdb3e1bc3b4

Evergreen Git git at git.evergreen-ils.org
Fri Apr 5 15:15:21 EDT 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  38411f209cb0b658f08d9040f2f04fdb3e1bc3b4 (commit)
      from  c14818bb399ddb2a3bcb94a61fe5070ca12ceb22 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 38411f209cb0b658f08d9040f2f04fdb3e1bc3b4
Author: Dan Wells <dbw2 at calvin.edu>
Date:   Thu Apr 4 16:43:38 2013 -0400

    Add summary creation to embedded alt dist editor
    
    In the Serial Control View, summaries are created automatically with
    a new distribution. To avoid unhappy surprises, the embedded version
    of the alt distribution editor should do the same.
    
    Signed-off-by: Dan Wells <dbw2 at calvin.edu>
    Signed-off-by: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>

diff --git a/Open-ILS/web/js/ui/default/serial/subscription.js b/Open-ILS/web/js/ui/default/serial/subscription.js
index 6f1291f..bedb587 100644
--- a/Open-ILS/web/js/ui/default/serial/subscription.js
+++ b/Open-ILS/web/js/ui/default/serial/subscription.js
@@ -303,6 +303,24 @@ openils.Util.addOnLoad(
                     "name" : "record_entry"
                 });
             dist_grid.overrideEditWidgets.record_entry.shove = {};
+            dist_grid.onPostCreate = function() { this.refresh(); };
+            dist_grid.createPaneOnSubmit = function(fmObject, opts, pane) {
+                fmObject.isnew(1);
+                fieldmapper.standardRequest(
+                    ['open-ils.serial', 'open-ils.serial.distribution.fleshed.batch.update'],
+                    {
+                        "async":false,
+                        "params":[openils.User.authtoken, [fmObject]],
+                        "oncomplete": function(r) {
+                            // TODO: adjust create method to send back fmObject,
+                            // then pass through to avoid need for onPostCreate
+                            // refresh
+                            // TODO: check for and handle possible errors
+                            pane.onPostSubmit(null, []);
+                        }
+                    }
+                );
+            };
             if (sub_id == 'new') {
                 ssub_grid.overrideEditWidgets.record_entry =
                         new dijit.form.TextBox({

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/web/js/ui/default/serial/subscription.js |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list