defaultCellWidth='"auto"'
showPaginator='true'
showColumnPicker='true'
- columnPickerPrefix='"acq.picklist.user_request"'>
+ columnPersistKey='"acq.picklist.user_request"'>
<thead>
<tr>
<th field='title' get='getTitle' formatter='formatTitle'/>
id="gridNode"
jsid="grid"
dojoType="openils.widget.FlattenerGrid"
- columnPickerPrefix='"conify.flattener_test"'
+ columnPersistKey='"conify.flattener_test"'
fmClass="'acp'"
autoHeight="10"
editOnEnter="true"
editStyle='pane'
editOnEnter='true'
showColumnPicker='true'
- columnPickerPrefix='"conify.config.barcode_completion"'>
+ columnPersistKey='"conify.config.barcode_completion"'>
</table>
</div>
editStyle='pane'
editOnEnter='true'
showColumnPicker='true'
- columnPickerPrefix='"conify.config.circ_limit_set"'>
+ columnPersistKey='"conify.config.circ_limit_set"'>
</table>
</div>
editStyle='pane'
editOnEnter='true'
showColumnPicker='true'
- columnPickerPrefix='"conify.config.circ_matrix_matchpoint"'>
+ columnPersistKey='"conify.config.circ_matrix_matchpoint"'>
<thead>
<tr>
<th field="hard_due_date" formatter="format_hard_due_date">
editStyle='pane'
editOnEnter='true'
showColumnPicker='true'
- columnPickerPrefix='"conify.config.hold_matrix_matchpoint"'>
+ columnPersistKey='"conify.config.hold_matrix_matchpoint"'>
</table>
<div></div>
</div>
query="{id: '*'}"
hidePaginator='true'
showColumnPicker='true'
- columnPickerPrefix='"vandelay.item.import_error"'
+ columnPersistKey='"vandelay.item.import_error"'
fmClass='vii'>
<thead>
<tr>
query="{id: '*'}"
showPaginator='true'
showColumnPicker='true'
- columnPickerPrefix='"vandelay.item.import_error"'
+ columnPersistKey='"vandelay.item.import_error"'
fmClass='vii'>
<thead>
<tr>
selectorWidth : '1.5',
lineNumberWidth : '1.5',
showColumnPicker : false,
- columnPickerPrefix : null,
+ columnPersistKey : null,
displayLimit : 15,
displayOffset : 0,
requiredFields : null,
this._showing_create_pane = false;
if(this.showColumnPicker) {
- if(!this.columnPickerPrefix) {
- console.error("No columnPickerPrefix defined");
+ if(!this.columnPersistKey) {
+ console.error("No columnPersistKey defined");
} else {
var picker = new openils.widget.GridColumnPicker(
- openils.User.authtoken, this.columnPickerPrefix, this);
+ openils.User.authtoken, this.columnPersistKey, this);
if(openils.User.authtoken) {
picker.load();
} else {
/* These potential constructor arguments are useful to
* lattenerGrid in their own right */
"columnReordering": true,
- "columnPickerPrefix": null,
+ "columnPersistKey": null,
/* These potential constructor arguments maybe useful to
* FlattenerGrid in their own right, and are passed to
if (!this.columnPicker) {
this.columnPicker =
new openils.widget.GridColumnPicker(
- null, this.columnPickerPrefix, this);
+ null, this.columnPersistKey, this);
this.columnPicker.load();
}
USER_PERSIST_SETTING : 'ui.grid_columns',
- constructor : function (authtoken, persistPrefix, grid, structure) {
+ constructor : function (authtoken, persistKey, grid, structure) {
this.grid = grid;
- this.persistPrefix = persistPrefix;
+ this.persistKey = this.USER_PERSIST_SETTING+'.'+persistKey;
this.authtoken = authtoken || openils.User.authtoken;
this.structure = structure || this.grid.structure;
this.cells = this.structure[0].cells[0].slice();
}
var setting = {};
- var setName = this.USER_PERSIST_SETTING+'.'+this.persistPrefix;
- setting[setName] = {'columns':list, 'auto':autos};
+ setting[this.persistKey] = {'columns':list, 'auto':autos};
+ var _this = this;
fieldmapper.standardRequest(
['open-ils.actor', 'open-ils.actor.patron.settings.update'],
{ async: true,
},
onmethoderror : function() {},
onerror : function() {
- console.log("No user setting '" + setName + "' configured. Cannot persist")
+ console.log("No user setting '" + _this.persistKey + "' configured. Cannot persist")
}
}
);
fieldmapper.standardRequest(
['open-ils.actor', 'open-ils.actor.patron.settings.retrieve'],
{ async: true,
- params: [this.authtoken, null, this.USER_PERSIST_SETTING+'.'+this.persistPrefix],
+ params: [this.authtoken, null, this.persistKey],
oncomplete: function(r) {
var set = openils.Util.readResponse(r);
if(set) {