- Timestamp:
- 03/14/14 10:51:13 (10 years ago)
- Location:
- DASISH/t5.6/client/trunk/chrome/markingcollection/content/markingcollection/annotator-service
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
DASISH/t5.6/client/trunk/chrome/markingcollection/content/markingcollection/annotator-service/annotation-service.js
r4667 r4696 75 75 76 76 aid = rtn[0].dasish_aid; 77 Firebug.Console.log('Resolved the AID for oid: '+oid+' for aid: '+aid);77 annotationProxy.log('Resolved the AID for oid: '+oid+' for aid: '+aid); 78 78 if (aid) { // ajax request only for annotations posted to and available in backend database 79 79 return $.ajax({ … … 81 81 type: 'DELETE', 82 82 error: function(jqXHR, status, thrownError) { 83 // Handle any errors 84 83 // Log any errors to debug console 85 84 annotationProxy.log("+ + + + + + + + + + + + + + + + + + + + + + + +"); 86 85 annotationProxy.log("Status Code (DELETE request): " + jqXHR.status); 87 86 annotationProxy.log("Error DELETE request: " + thrownError); 88 87 }, 89 success: function(result) { 90 91 annotationProxy.log("DELETE request was successful."); 92 annotationProxy.log(result); 88 success: function(result) { 89 annotationProxy.log("DELETE request was successful."); 90 annotationProxy.log(result); 93 91 } 94 92 }); … … 105 103 // Handle any errors 106 104 if (typeof Firebug !== 'undefined' && Firebug.Console) { 107 Firebug.Console.log("+ + + + + + + + + + + + + + + + + + + + + + + +");108 Firebug.Console.log("Status Code: " + jqXHR.status);109 Firebug.Console.log("Error : " + thrownError);105 annotationProxy.log("+ + + + + + + + + + + + + + + + + + + + + + + +"); 106 annotationProxy.log("Status Code: " + jqXHR.status); 107 annotationProxy.log("Error : " + thrownError); 110 108 } 111 109 }, … … 114 112 var aid = response[response.length - 1]; 115 113 116 if (typeof Firebug !== 'undefined' && Firebug.Console) { 117 Firebug.Console.log("+ + + + + + + + + + + + + + + + + + + + + + + +"); 118 Firebug.Console.log("Status Code POST request: " + jqXHR.status); 119 Firebug.Console.log("Response Body: " + jqXHR.responseText); 120 Firebug.Console.log("+ + + + + + + + + + + + + + + + + + + + + + + +"); 121 } 122 Firebug.Console.log("OID: " + oid); 123 Firebug.Console.log("AID: " + aid); 114 annotationProxy.log("+ + + + + + + + + + + + + + + + + + + + + + + +"); 115 annotationProxy.log("Status Code POST request: " + jqXHR.status); 116 annotationProxy.log("Response Body: " + jqXHR.responseText); 117 annotationProxy.log("+ + + + + + + + + + + + + + + + + + + + + + + +"); 118 119 annotationProxy.log("OID: " + oid); 120 annotationProxy.log("AID: " + aid); 124 121 // Firebug.Console.log(bitsObjectMng.Database.getObject({oid: oid})); 125 122 126 123 var aSql = 'update om_object set dasish_aid = "' + aid + '" where oid="' + oid + '"'; 127 Firebug.Console.log(aSql);124 annotationProxy.log(aSql); 128 125 // insert request to local sqlite database where aid gets inserted 129 126 var rtn = bitsObjectMng.Database.cmd("", aSql); // aMode = "" defaults to predefined value; aSql contains sql statement … … 132 129 // Database insert request is true if successful 133 130 // Firebug.Console.log(rtn); 134 135 131 } 136 132 }); -
DASISH/t5.6/client/trunk/chrome/markingcollection/content/markingcollection/annotator-service/annotations.wired.marker.js
r4555 r4696 70 70 updateAnnotation: function(annotation) { 71 71 this.log('updateAnnotation : ' + JSON.stringify(annotation)); 72 this.log('UPDATED ANNOTATION AS XML: '); 73 var xml = om_object2annotation(annotation); 74 this.log(xml); 72 75 }, 73 76 log: function(message) {
Note: See TracChangeset
for help on using the changeset viewer.