summaryrefslogtreecommitdiffstats
path: root/branches/sca-java-1.x/samples/store-dojo
diff options
context:
space:
mode:
Diffstat (limited to 'branches/sca-java-1.x/samples/store-dojo')
-rw-r--r--branches/sca-java-1.x/samples/store-dojo/src/main/resources/uiservices/store.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/branches/sca-java-1.x/samples/store-dojo/src/main/resources/uiservices/store.html b/branches/sca-java-1.x/samples/store-dojo/src/main/resources/uiservices/store.html
index 72d122af94..8fd22f4123 100644
--- a/branches/sca-java-1.x/samples/store-dojo/src/main/resources/uiservices/store.html
+++ b/branches/sca-java-1.x/samples/store-dojo/src/main/resources/uiservices/store.html
@@ -72,7 +72,7 @@
if (entries.length != 0) {
try {
- shoppingTotal.getTotal(shoppingTotal_getTotalResponse);
+ shoppingTotal.getTotal().addCallback(shoppingTotal_getTotalResponse);
}
catch(e){
alert(e);
@@ -90,7 +90,7 @@
}
function shoppingCart_postResponse(entry) {
- shoppingCart.get("", shoppingCart_getResponse);
+ shoppingCart.get("").addCallback(shoppingCart_getResponse);
}
function addToCart() {
@@ -103,7 +103,7 @@
'<Item xmlns="http://services/">' +
'<name xmlns="">' + catalogItems[i].name + '</name>' + '<price xmlns="">' + catalogItems[i].price + '</price>' +
'</Item>' + '</content></entry>';
- shoppingCart.post(entry, shoppingCart_postResponse);
+ shoppingCart.post(entry).addCallback(shoppingCart_postResponse);
items[i].checked = false;
}
}
@@ -119,7 +119,7 @@
'<br>'+
'<input type="submit" value="Continue Shopping">'+
'</form>';
- shoppingCart.del("", null);
+ shoppingCart.del("");
}
function deleteCart() {
shoppingCart.del("", null);