serials: Consolidate the Modify/Use buttons in MFHD edit under a top Save button
authorMike Rylander <mrylander@gmail.com>
Fri, 7 Jul 2017 19:10:20 +0000 (15:10 -0400)
committerMike Rylander <mrylander@gmail.com>
Fri, 7 Jul 2017 19:10:20 +0000 (15:10 -0400)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/templates/staff/share/t_edit_mfhd.tt2
Open-ILS/web/js/ui/default/staff/serials/directives/mfhd_manager.js

index 807207f..633445c 100644 (file)
@@ -6,11 +6,9 @@
   </div>
   <div class="modal-body">
     <eg-marc-edit-record dirty-flag="dirty_flag" marc-xml="args.marc_xml"
-                         in-place-mode="true" record-type="sre" save-label="[% l('Modify') %]" />
+        on-save="ok" in-place-mode="true" record-type="sre" save-label="[% l('Save') %]" />
   </div>
   <div class="modal-footer">
-    <input type="submit" ng-click="ok(args)"
-        class="btn btn-primary" value="[% l('Use Edits') %]"/>
     <button class="btn btn-warning" ng-click="cancel()">[% l('Cancel') %]</button>
   </div>
 </div>
index 06d6e95..c754cf8 100644 (file)
@@ -55,7 +55,7 @@ function($scope , $q , egSerialsCoreSvc , egCore , egGridDataProvider ,
                 $scope.focusMe = true;
                 $scope.args = args;
                 $scope.dirty_flag = false;
-                $scope.ok = function(args) { $uibModalInstance.close(args) }
+                $scope.ok = function() { $uibModalInstance.close($scope.args) }
                 $scope.cancel = function () { $uibModalInstance.dismiss() }
             }]
         }).result.then(function (args) {