summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-01-16 00:09:43 +0100
committerRobin Appelman <icewind@owncloud.com>2012-01-16 00:09:43 +0100
commitb366b0eb521163c2d10322c3e7567970a23c20f9 (patch)
treeaa72541d3fe08559ccd657b367e723c852a3a1a2
parentac188ec74baa758cd990a203ce0bbc317f92963e (diff)
downloadnextcloud-server-b366b0eb521163c2d10322c3e7567970a23c20f9.tar.gz
nextcloud-server-b366b0eb521163c2d10322c3e7567970a23c20f9.zip
quick fix for javascript translations
-rw-r--r--core/js/js.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/core/js/js.js b/core/js/js.js
index 56ce87f1c21..c6cde3cea95 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -6,10 +6,14 @@
*/
function t(app,text){
if( !( app in t.cache )){
-
- $.post( OC.filePath('core','ajax','translations.php'), {'app': app}, function(jsondata){
- t.cache[app] = jsondata.data;
- });
+ $.ajax(OC.filePath('core','ajax','translations.php'),{
+ async:false,//todo a proper sollution for this without sync ajax calls
+ data:{'app': app},
+ type:'POST',
+ success:function(jsondata){
+ t.cache[app] = jsondata.data;
+ },
+ })
// Bad answer ...
if( !( app in t.cache )){