diff options
author | Bart Visscher <bartv@thisnet.nl> | 2011-09-26 21:18:56 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2011-09-26 21:18:56 +0200 |
commit | 3fcc7b5949fcf9c9220ff8f2a5e5e1f22885465f (patch) | |
tree | 2ba1afa1c937942704a8a5f5e08d9b22a4874ec7 /core | |
parent | 2d3c1a3f003cbbebfd70df7ccc326100a769dcd4 (diff) | |
download | nextcloud-server-3fcc7b5949fcf9c9220ff8f2a5e5e1f22885465f.tar.gz nextcloud-server-3fcc7b5949fcf9c9220ff8f2a5e5e1f22885465f.zip |
Use correct name for function state for addScript/addStyle in js
Diffstat (limited to 'core')
-rw-r--r-- | core/js/js.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/js/js.js b/core/js/js.js index 9d2b20d10f0..a75e1d41f60 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -83,8 +83,8 @@ OC={ */ addScript:function(app,script,ready){ var path=OC.filePath(app,'js',script+'.js'); - if(OC.addStyle.loaded.indexOf(path)==-1){ - OC.addStyle.loaded.push(path); + if(OC.addScript.loaded.indexOf(path)==-1){ + OC.addScript.loaded.push(path); if(ready){ $.getScript(path,ready); }else{ @@ -103,8 +103,8 @@ OC={ */ addStyle:function(app,style){ var path=OC.filePath(app,'css',style+'.css'); - if(OC.addScript.loaded.indexOf(path)==-1){ - OC.addScript.loaded.push(path); + if(OC.addStyle.loaded.indexOf(path)==-1){ + OC.addStyle.loaded.push(path); var style=$('<link rel="stylesheet" type="text/css" href="'+path+'"/>'); $('head').append(style); } |