From 9a4275f6e8029a49ea45cd302434ca4e21057c82 Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 4 Sep 2006 03:27:27 +0000 Subject: [PATCH] added some status popups git-svn-id: svn://svn.open-ils.org/ILS/trunk@5911 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/skin/default/js/container.js | 2 +- Open-ILS/web/opac/skin/default/js/myopac.js | 7 +++++-- .../web/opac/skin/default/xml/myopac/myopac_bookbags.xml | 4 ++++ Open-ILS/xul/staff_client/server/admin/copy_locations.js | 6 ++++-- .../xul/staff_client/server/admin/copy_locations.xhtml | 3 +++ Open-ILS/xul/staff_client/server/admin/non_cat_types.js | 5 ++++- .../xul/staff_client/server/admin/non_cat_types.xhtml | 4 ++++ .../xul/staff_client/server/admin/stat_cat_editor.js | 9 +++++++++ .../xul/staff_client/server/admin/stat_cat_editor.xhtml | 5 +++++ 9 files changed, 39 insertions(+), 6 deletions(-) diff --git a/Open-ILS/web/opac/skin/default/js/container.js b/Open-ILS/web/opac/skin/default/js/container.js index 4a8dcf7546..c898663642 100644 --- a/Open-ILS/web/opac/skin/default/js/container.js +++ b/Open-ILS/web/opac/skin/default/js/container.js @@ -20,7 +20,7 @@ function containerFetchAll( callback, args ) { } 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 ); } diff --git a/Open-ILS/web/opac/skin/default/js/myopac.js b/Open-ILS/web/opac/skin/default/js/myopac.js index e3db6eb5f7..be79c65ce8 100644 --- a/Open-ILS/web/opac/skin/default/js/myopac.js +++ b/Open-ILS/web/opac/skin/default/js/myopac.js @@ -938,7 +938,7 @@ function myOPACMakeBBPublished(bbid, hideme) { 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); } @@ -949,6 +949,7 @@ function myOPACDeleteBookbag(id) { 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')); @@ -1020,7 +1021,8 @@ function myOPACExpandBookbag( id, name ) { 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 ); } @@ -1044,6 +1046,7 @@ function myOPACCreateBookbag() { 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); } diff --git a/Open-ILS/web/opac/skin/default/xml/myopac/myopac_bookbags.xml b/Open-ILS/web/opac/skin/default/xml/myopac/myopac_bookbags.xml index c04f288e2f..2f88b334d8 100644 --- a/Open-ILS/web/opac/skin/default/xml/myopac/myopac_bookbags.xml +++ b/Open-ILS/web/opac/skin/default/xml/myopac/myopac_bookbags.xml @@ -136,6 +136,10 @@ Bookbags are... + + Bookbag successfully updated + + diff --git a/Open-ILS/xul/staff_client/server/admin/copy_locations.js b/Open-ILS/xul/staff_client/server/admin/copy_locations.js index 4c9c10fd41..ca64616b58 100644 --- a/Open-ILS/xul/staff_client/server/admin/copy_locations.js +++ b/Open-ILS/xul/staff_client/server/admin/copy_locations.js @@ -39,7 +39,7 @@ function clHoldMsg() { function clGo() { var req = new Request(RETRIEVE_CL, USER.ws_ou()); req.callback(clDraw); - req.send(); + setTimeout( function(){req.send()}, 500 ); } function clBuildNew() { @@ -68,6 +68,7 @@ function clCreateNew() { req.send(true); var res = req.result(); if(checkILSEvent(res)) throw res; + alertId('cl_update_success'); clGo(); } @@ -166,6 +167,7 @@ function clEditCommit( tbody, r, cl ) { req.send(true); var res = req.result(); if(checkILSEvent(res)) throw res; + alertId('cl_update_success'); clGo(); } @@ -177,7 +179,7 @@ function clDelete( cl, tbody, row ) { req.send(true); var res = req.result(); if(checkILSEvent(res)) throw res; - + alertId('cl_update_success'); clGo(); } diff --git a/Open-ILS/xul/staff_client/server/admin/copy_locations.xhtml b/Open-ILS/xul/staff_client/server/admin/copy_locations.xhtml index fa7f42c7e3..133c995efc 100644 --- a/Open-ILS/xul/staff_client/server/admin/copy_locations.xhtml +++ b/Open-ILS/xul/staff_client/server/admin/copy_locations.xhtml @@ -164,5 +164,8 @@ + + Update Succeeded + diff --git a/Open-ILS/xul/staff_client/server/admin/non_cat_types.js b/Open-ILS/xul/staff_client/server/admin/non_cat_types.js index 4679989e3f..4b82e5b25d 100644 --- a/Open-ILS/xul/staff_client/server/admin/non_cat_types.js +++ b/Open-ILS/xul/staff_client/server/admin/non_cat_types.js @@ -40,7 +40,7 @@ function ncBuildNew() { 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() { @@ -55,6 +55,7 @@ function ncCreateNew() { req.send(true); var res = req.result(); if(checkILSEvent(res)) throw res; + alertId('nc_update_success'); ncFetchTypes(); } @@ -174,6 +175,7 @@ function ncEditSubmit( type, name, interval, inhouse ) { req.send(true); var res = req.result(); if(checkILSEvent(res)) throw res; + alertId('nc_update_success'); ncFetchTypes(); } @@ -184,6 +186,7 @@ function ncDeleteType( tbody, row, type ) { function(r) { var res = r.getResultObject(); if(checkILSEvent(res)) alertILSEvent(res); + alertId('nc_update_success'); ncFetchTypes(); } ); diff --git a/Open-ILS/xul/staff_client/server/admin/non_cat_types.xhtml b/Open-ILS/xul/staff_client/server/admin/non_cat_types.xhtml index d7b0185015..8680f224f8 100644 --- a/Open-ILS/xul/staff_client/server/admin/non_cat_types.xhtml +++ b/Open-ILS/xul/staff_client/server/admin/non_cat_types.xhtml @@ -147,6 +147,10 @@ room "rentals", etc. + + Non cataloged type successfully updated + + diff --git a/Open-ILS/xul/staff_client/server/admin/stat_cat_editor.js b/Open-ILS/xul/staff_client/server/admin/stat_cat_editor.js index e8e00c0b98..ed814baaca 100644 --- a/Open-ILS/xul/staff_client/server/admin/stat_cat_editor.js +++ b/Open-ILS/xul/staff_client/server/admin/stat_cat_editor.js @@ -88,6 +88,10 @@ function scFetchAll( session, type, orgid, callback, args ) { } function scShow(type) { + setTimeout(function(){_scShow(type)}, 500); +} + +function _scShow(type) { currentlyVisible = type; @@ -172,6 +176,7 @@ function scDelete(type, id) { req.send(true); var res = req.result(); if(checkILSEvent(res)) throw res; + alertId('sc_update_success'); scShow(type); } @@ -191,6 +196,7 @@ function scCreateEntry( type, id, row ) { req.send(true); var res = req.result(); if(checkILSEvent(res)) throw res; + alertId('sc_update_success'); scShow(type); } @@ -282,6 +288,7 @@ function scNew() { req.send(true); var res = req.result(); if(checkILSEvent(res)) throw res; + alertId('sc_update_success'); scShow(type); } @@ -373,6 +380,7 @@ function scEditGo( type, cat, row, selector ) { req.send(true); var res = req.result(); if(checkILSEvent(res)) throw res; + alertId('sc_update_success'); scShow(type); return true; @@ -425,6 +433,7 @@ function scEntryDelete( cat, entry, type ) { req.send(true); var res = req.result(); if(checkILSEvent(res)) throw res; + alertId('sc_update_success'); scShow(type); } diff --git a/Open-ILS/xul/staff_client/server/admin/stat_cat_editor.xhtml b/Open-ILS/xul/staff_client/server/admin/stat_cat_editor.xhtml index 1fd49c9edd..b4be9861cd 100644 --- a/Open-ILS/xul/staff_client/server/admin/stat_cat_editor.xhtml +++ b/Open-ILS/xul/staff_client/server/admin/stat_cat_editor.xhtml @@ -230,5 +230,10 @@ + + + Update succeeded + + -- 2.43.2