Update of /var/cvs/applications/searchrelate/templates
In directory james.mmbase.org:/tmp/cvs-serv18054
Modified Files:
List.js.jsp
Log Message:
added a try/catch
See also: http://cvs.mmbase.org/viewcvs/applications/searchrelate/templates
Index: List.js.jsp
===================================================================
RCS file: /var/cvs/applications/searchrelate/templates/List.js.jsp,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- List.js.jsp 27 Jun 2008 15:23:19 -0000 1.14
+++ List.js.jsp 3 Jul 2008 16:13:00 -0000 1.15
@@ -13,7 +13,7 @@
* The user does not need to push a commit button. All data is implicitely
committed (after a few second of inactivity, or before unload).
*
* @author Michiel Meeuwissen
- * @version $Id: List.js.jsp,v 1.14 2008/06/27 15:23:19 michiel Exp $
+ * @version $Id: List.js.jsp,v 1.15 2008/07/03 16:13:00 michiel Exp $
*/
@@ -142,6 +142,7 @@
var params = {};
$.ajax({async: false, url: url, type: "GET", dataType: "xml", data:
params,
complete: function(res, status){
+ try {
if ( status == "success" || status == "notmodified" ) {
var r = $(res.responseText)[0];
@@ -162,8 +163,11 @@
}
});
a.list.executeCallBack("create", r);
-
}
+ } catch (ex) {
+ alert(ex);
+ }
+
}
});
return false;
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs