aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2012-12-03 11:00:06 -0800
committerAdam Soltys <[email protected]>2012-12-03 11:00:06 -0800
commit0d0604e03b8f5cde61078b280e4cb2548e5b0a62 (patch)
tree89606df66364183387b5e5d51b6f4ab6782b643f
parent3fcf88ecdab1424d9ba49ee35ea402f82a985036 (diff)
downloadcoinos-server-0d0604e03b8f5cde61078b280e4cb2548e5b0a62.tar.gz
coinos-server-0d0604e03b8f5cde61078b280e4cb2548e5b0a62.zip
Allow cached AJAX
-rw-r--r--public/js/calculator.coffee2
-rw-r--r--public/js/index.coffee1
2 files changed, 0 insertions, 3 deletions
diff --git a/public/js/calculator.coffee b/public/js/calculator.coffee
index 78e5d91c..ef26fd63 100644
--- a/public/js/calculator.coffee
+++ b/public/js/calculator.coffee
@@ -25,7 +25,6 @@ $(->
if g.user
$.ajax(
url: g.user + '.json',
- cache: false,
dataType: 'json',
success: (data) ->
if data?
@@ -83,7 +82,6 @@ setup = ->
fetchExchangeRate = ->
$.ajax(
url: "ticker?symbol=#{g.symbol}&type=ask&amount=1000",
- cache: false,
success: (exchange) ->
if exchange?
clear(EXCHANGE_FAIL)
diff --git a/public/js/index.coffee b/public/js/index.coffee
index 7db59a66..2a8a6b5a 100644
--- a/public/js/index.coffee
+++ b/public/js/index.coffee
@@ -11,7 +11,6 @@ fetchExchangeRate = (type) ->
$.ajax(
url: "ticker?symbol=virtexCAD&type=#{type}&amount=1000",
- cache: false,
success: (exchange) ->
if not exchange?
exchange = '??'