Fix some jslint warnings
This commit is contained in:
parent
41f135daee
commit
f188f6cc2f
|
@ -1,4 +1,4 @@
|
||||||
FileActions={
|
var FileActions={
|
||||||
actions:{},
|
actions:{},
|
||||||
defaults:{},
|
defaults:{},
|
||||||
icons:{},
|
icons:{},
|
||||||
|
@ -20,20 +20,20 @@ FileActions={
|
||||||
get:function(mime,type,permissions){
|
get:function(mime,type,permissions){
|
||||||
var actions={};
|
var actions={};
|
||||||
if(FileActions.actions.all){
|
if(FileActions.actions.all){
|
||||||
actions=$.extend( actions, FileActions.actions.all )
|
actions=$.extend( actions, FileActions.actions.all );
|
||||||
}
|
}
|
||||||
if(mime){
|
if(mime){
|
||||||
if(FileActions.actions[mime]){
|
if(FileActions.actions[mime]){
|
||||||
actions=$.extend( actions, FileActions.actions[mime] )
|
actions=$.extend( actions, FileActions.actions[mime] );
|
||||||
}
|
}
|
||||||
var mimePart=mime.substr(0,mime.indexOf('/'));
|
var mimePart=mime.substr(0,mime.indexOf('/'));
|
||||||
if(FileActions.actions[mimePart]){
|
if(FileActions.actions[mimePart]){
|
||||||
actions=$.extend( actions, FileActions.actions[mimePart] )
|
actions=$.extend( actions, FileActions.actions[mimePart] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(type){//type is 'dir' or 'file'
|
if(type){//type is 'dir' or 'file'
|
||||||
if(FileActions.actions[type]){
|
if(FileActions.actions[type]){
|
||||||
actions=$.extend( actions, FileActions.actions[type] )
|
actions=$.extend( actions, FileActions.actions[type] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var filteredActions = {};
|
var filteredActions = {};
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FileList={
|
var FileList={
|
||||||
useUndo:true,
|
useUndo:true,
|
||||||
update:function(fileListHtml) {
|
update:function(fileListHtml) {
|
||||||
$('#fileList').empty().html(fileListHtml);
|
$('#fileList').empty().html(fileListHtml);
|
||||||
|
@ -14,7 +14,7 @@ FileList={
|
||||||
var extension=false;
|
var extension=false;
|
||||||
}
|
}
|
||||||
html+='<td class="filename" style="background-image:url('+img+')"><input type="checkbox" />';
|
html+='<td class="filename" style="background-image:url('+img+')"><input type="checkbox" />';
|
||||||
html+='<a class="name" href="download.php?file='+$('#dir').val().replace(/</, '<').replace(/>/, '>')+'/'+name+'"><span class="nametext">'+basename
|
html+='<a class="name" href="download.php?file='+$('#dir').val().replace(/</, '<').replace(/>/, '>')+'/'+name+'"><span class="nametext">'+basename;
|
||||||
if(extension){
|
if(extension){
|
||||||
html+='<span class="extension">'+extension+'</span>';
|
html+='<span class="extension">'+extension+'</span>';
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,8 @@
|
||||||
* @param text the string to translate
|
* @param text the string to translate
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
var OC;
|
||||||
|
|
||||||
function t(app,text){
|
function t(app,text){
|
||||||
if( !( app in t.cache )){
|
if( !( app in t.cache )){
|
||||||
$.ajax(OC.filePath('core','ajax','translations.php'),{
|
$.ajax(OC.filePath('core','ajax','translations.php'),{
|
||||||
|
|
Loading…
Reference in New Issue