subscribeToFeed: add ajax exception handler
This commit is contained in:
parent
6e63a7c306
commit
55a5137307
|
@ -1302,13 +1302,15 @@ function subscribeToFeed() {
|
||||||
onComplete: function(transport) {
|
onComplete: function(transport) {
|
||||||
//dlg_frefresh_callback(transport);
|
//dlg_frefresh_callback(transport);
|
||||||
|
|
||||||
notify('');
|
try {
|
||||||
|
|
||||||
var result = transport.responseXML.getElementsByTagName('result')[0];
|
var result = transport.responseXML.getElementsByTagName('result')[0];
|
||||||
var rc = parseInt(result.getAttribute('code'));
|
var rc = parseInt(result.getAttribute('code'));
|
||||||
|
|
||||||
Form.enable("feed_add_form");
|
Form.enable("feed_add_form");
|
||||||
|
|
||||||
|
notify('');
|
||||||
|
|
||||||
switch (rc) {
|
switch (rc) {
|
||||||
case 1:
|
case 1:
|
||||||
closeInfoBox();
|
closeInfoBox();
|
||||||
|
@ -1352,6 +1354,10 @@ function subscribeToFeed() {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} catch (e) {
|
||||||
|
exception_error("subscribeToFeed", e);
|
||||||
|
}
|
||||||
|
|
||||||
} });
|
} });
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Reference in New Issue