Skip to content
Snippets Groups Projects
Commit b366b0eb authored by Robin Appelman's avatar Robin Appelman
Browse files

quick fix for javascript translations

parent ac188ec7
Branches
No related tags found
No related merge requests found
......@@ -6,10 +6,14 @@
*/
function t(app,text){
if( !( app in t.cache )){
$.post( OC.filePath('core','ajax','translations.php'), {'app': app}, function(jsondata){
$.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 )){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment