}
function containerFlesh( id, callback, args ) {
- var req = new Request( FLESH_CONTAINER, G.user.session, 'biblio', id );
+ var req = new Request( FLESH_CONTAINER, G.user.session, 'biblio', id );
return containerDoRequest( req, callback, args );
}
var code = checkILSEvent(result);
if(code) { alertILSEvent(result); return; }
- if(result) alert($('myopac_bb_update_success').innerHTML);
+ alert($('myopac_bb_update_success').innerHTML);
myOPACShowBookbags(true);
}
var result = containerDelete(id);
var code = checkILSEvent(result);
if(code) { alertILSEvent(result); return; }
+ alert($('myopac_bb_update_success').innerHTML);
hideMe($('myopac_bookbag_items_table'));
hideMe($('myopac_bookbag_items_name'));
hideMe($('myopac_bookbag_no_items'));
function myOPACRemoveBBItem( id, containerid, container_name ) {
if(!confirm($('myopac_remove_bb_item_confirm').innerHTML)) return;
- containerRemoveItem( id );
+ var stat = containerRemoveItem( id );
+ if(stat) alert($('myopac_bb_update_success').innerHTML);
myOPACFetchBBItems( containerid, $('myopac_bookbag_row_' + containerid), true);
myOPACExpandBookbag( containerid, container_name );
}
var result = containerCreate( name, $('bb_public_yes').checked );
var code = checkILSEvent(result);
if(code) { alertILSEvent(result); return; }
+ if(result) alert($('myopac_bb_update_success').innerHTML);
myOPACShowBookbags(true);
}
Bookbags are...
</span>
+ <span class='hide_me' id='bb_update_success'>
+ Bookbag successfully updated
+ </span>
+
</div>
function clGo() {
var req = new Request(RETRIEVE_CL, USER.ws_ou());
req.callback(clDraw);
- req.send();
+ setTimeout( function(){req.send()}, 500 );
}
function clBuildNew() {
req.send(true);
var res = req.result();
if(checkILSEvent(res)) throw res;
+ alertId('cl_update_success');
clGo();
}
req.send(true);
var res = req.result();
if(checkILSEvent(res)) throw res;
+ alertId('cl_update_success');
clGo();
}
req.send(true);
var res = req.result();
if(checkILSEvent(res)) throw res;
-
+ alertId('cl_update_success');
clGo();
}
</table>
</div>
</body>
+ <span class='hide_me' id='cl_update_success'>
+ Update Succeeded
+ </span>
</html>
function ncFetchTypes() {
var req = new Request( FETCH_NON_CAT_TYPES, USER.home_ou() );
req.callback(ncDisplayTypes);
- req.send();
+ setTimeout(function(){req.send();}, 500);
}
function ncCreateNew() {
req.send(true);
var res = req.result();
if(checkILSEvent(res)) throw res;
+ alertId('nc_update_success');
ncFetchTypes();
}
req.send(true);
var res = req.result();
if(checkILSEvent(res)) throw res;
+ alertId('nc_update_success');
ncFetchTypes();
}
function(r) {
var res = r.getResultObject();
if(checkILSEvent(res)) alertILSEvent(res);
+ alertId('nc_update_success');
ncFetchTypes();
}
);
room "rentals", etc.
</span>
+ <span class='hide_me' id='nc_update_success'>
+ Non cataloged type successfully updated
+ </span>
+
</html>
}
function scShow(type) {
+ setTimeout(function(){_scShow(type)}, 500);
+}
+
+function _scShow(type) {
currentlyVisible = type;
req.send(true);
var res = req.result();
if(checkILSEvent(res)) throw res;
+ alertId('sc_update_success');
scShow(type);
}
req.send(true);
var res = req.result();
if(checkILSEvent(res)) throw res;
+ alertId('sc_update_success');
scShow(type);
}
req.send(true);
var res = req.result();
if(checkILSEvent(res)) throw res;
+ alertId('sc_update_success');
scShow(type);
}
req.send(true);
var res = req.result();
if(checkILSEvent(res)) throw res;
+ alertId('sc_update_success');
scShow(type);
return true;
req.send(true);
var res = req.result();
if(checkILSEvent(res)) throw res;
+ alertId('sc_update_success');
scShow(type);
}
</table>
</body>
+
+ <span class='hide_me' id='sc_update_success'>
+ Update succeeded
+ </span>
+
</html>