[open-ils-commits] r11620 - trunk/Open-ILS/web/conify/global/actor
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Dec 18 16:21:47 EST 2008
Author: miker
Date: 2008-12-18 16:21:43 -0500 (Thu, 18 Dec 2008)
New Revision: 11620
Modified:
trunk/Open-ILS/web/conify/global/actor/org_unit.js
Log:
thow and error on, well, error for easier debugging in firebug
Modified: trunk/Open-ILS/web/conify/global/actor/org_unit.js
===================================================================
--- trunk/Open-ILS/web/conify/global/actor/org_unit.js 2008-12-18 21:17:25 UTC (rev 11619)
+++ trunk/Open-ILS/web/conify/global/actor/org_unit.js 2008-12-18 21:21:43 UTC (rev 11620)
@@ -86,6 +86,7 @@
} else {
highlighter.editor_pane.red.play();
status_update( dojo.string.substitute( aou_strings.ERROR_SAVING_DATA, [ou_list_store.getValue( current_ou, 'name' )] ) );
+ throw 'commit error';
}
pCRUD.disconnect();
},
@@ -98,18 +99,17 @@
onerror : function (r) {
highlighter.editor_pane.red.play();
status_update( dojo.string.substitute( aou_strings.ERROR_SAVING_DATA, [ou_list_store.getValue( current_ou, 'name' )] ) );
+ throw 'update error';
},
oncomplete : function (r) {
var res = r.recv();
if ( res && res.content() ) {
- ou_list_store.setValue( current_ou, 'ischanged', 0 );
- highlighter.editor_pane.green.play();
- status_update( dojo.string.substitute( aou_strings.SUCCESS_SAVE, [ou_list_store.getValue( current_ou, 'name' )] ) );
commit.send();
} else {
highlighter.editor_pane.red.play();
status_update( dojo.string.substitute( aou_strings.ERROR_SAVING_DATA, [ou_list_store.getValue( current_ou, 'name' )] ) );
pCRUD.disconnect();
+ throw 'update error';
}
},
});
@@ -121,6 +121,7 @@
onerror : function (r) {
highlighter.editor_pane.red.play();
status_update( dojo.string.substitute( aou_strings.ERROR_SAVING_DATA, [ou_list_store.getValue( current_ou, 'name' )] ) );
+ throw 'begin error';
},
oncomplete : function (r) {
var res = r.recv();
@@ -130,6 +131,7 @@
highlighter.editor_pane.red.play();
status_update( dojo.string.substitute( aou_strings.ERROR_SAVING_DATA, [ou_list_store.getValue( current_ou, 'name' )] ) );
pCRUD.disconnect();
+ throw 'begin error';
}
},
});
More information about the open-ils-commits
mailing list