.acq-lit-row { border-bottom: 1px solid #AAA; }
.acq-lit-alt-row td { padding-left:30px; }
#acq-lit-info-tbody td {padding:5px;}
-#acq-lit-li-details-table {margin-top:25px;}
+#acq-lit-li-details-table {margin-top:20px;}
#acq-lit-li-details-table td {padding:0px 10px 0px 10px;}
#acq-lit-li-details-table th {padding:0px 10px 0px 10px; font-weight:bold;}
.acq-lit-li-menu-bar {width:99%; text-align:left; border:1px solid #aaa; margin:5px 0px 10px 0px;}
+.acq-lit-table-spacer { height:20px; }
this.copyTbody = dojo.byId('acq-lit-li-details-tbody');
this.copyRow = this.copyTbody.removeChild(dojo.byId('acq-lit-li-details-row'));
this.copyBatchRow = dojo.byId('acq-lit-li-details-batch-row');
+ this.copyBatchWidgets = {};
dojo.byId('acq-lit-select-toggle').onclick = function(){self.toggleSelect()};
dojo.byId('acq-lit-info-back-button').onclick = function(){self.show('list')};
var self = this;
this.copyCache = {};
this.copyWidgetCache = {};
- this.copyBatchWidgets = {};
+
acqLitSaveCopies.onClick = function() { self.saveCopyChanges(liId) };
acqLitBatchUpdateCopies.onClick = function() { self.batchCopyUpdate() };
this.copyTbody.removeChild(this.copyTbody.childNodes[0]);
var row = this.copyBatchRow;
- if(!this.copyBatchRowDrawn) {
- dojo.forEach(['fund', 'owning_lib', 'location'],
- function(field) {
+ dojo.forEach(['fund', 'owning_lib', 'location'],
+ function(field) {
+ if(self.copyBatchRowDrawn) {
+ self.copyBatchWidgets[field].attr('value', null);
+ } else {
var widget = new openils.widget.AutoFieldWidget({
fmField : field,
fmClass : 'acqlid',
parentNode : dojo.query('[name='+field+']', row)[0],
orgLimitPerms : ['CREATE_PICKLIST'],
+ dijitArgs : {required:false}
});
widget.build();
self.copyBatchWidgets[field] = widget.widget;
}
- );
- this.copyBatchRowDrawn = true;
- };
+ }
+ );
+ this.copyBatchRowDrawn = true;
openils.acq.Lineitem.fetchAttrDefs(