added some status popups
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 4 Sep 2006 03:27:27 +0000 (03:27 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 4 Sep 2006 03:27:27 +0000 (03:27 +0000)
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
Open-ILS/web/opac/skin/default/js/myopac.js
Open-ILS/web/opac/skin/default/xml/myopac/myopac_bookbags.xml
Open-ILS/xul/staff_client/server/admin/copy_locations.js
Open-ILS/xul/staff_client/server/admin/copy_locations.xhtml
Open-ILS/xul/staff_client/server/admin/non_cat_types.js
Open-ILS/xul/staff_client/server/admin/non_cat_types.xhtml
Open-ILS/xul/staff_client/server/admin/stat_cat_editor.js
Open-ILS/xul/staff_client/server/admin/stat_cat_editor.xhtml

index 4a8dcf7..c898663 100644 (file)
@@ -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 );
 }
 
index e3db6eb..be79c65 100644 (file)
@@ -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);
 }
 
index c04f288..2f88b33 100644 (file)
                Bookbags are...
        </span>
 
+       <span class='hide_me' id='bb_update_success'>
+               Bookbag successfully updated
+       </span>
+
 </div>
 
 
index 4c9c10f..ca64616 100644 (file)
@@ -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();
 }
 
index fa7f42c..133c995 100644 (file)
                        </table>
                </div>
        </body>
+       <span class='hide_me' id='cl_update_success'>
+               Update Succeeded
+       </span>
 </html>
 
index 4679989..4b82e5b 100644 (file)
@@ -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();
                }
        );
index d7b0185..8680f22 100644 (file)
                room "rentals", etc.
        </span>
 
+       <span class='hide_me' id='nc_update_success'>
+               Non cataloged type successfully updated
+       </span>
+
 </html>
 
 
index e8e00c0..ed814ba 100644 (file)
@@ -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);
 }
 
index 1fd49c9..b4be986 100644 (file)
                </table>
 
        </body>
+
+       <span class='hide_me' id='sc_update_success'>
+               Update succeeded
+       </span>
+
 </html>