Add missing ; to js code
This commit is contained in:
parent
9f1c76beef
commit
9329af921d
|
@ -143,7 +143,7 @@ var FileActions={
|
||||||
getCurrentPermissions:function() {
|
getCurrentPermissions:function() {
|
||||||
return FileActions.currentFile.parent().data('permissions');
|
return FileActions.currentFile.parent().data('permissions');
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
if($('#allowZipDownload').val() == 1){
|
if($('#allowZipDownload').val() == 1){
|
||||||
|
@ -151,12 +151,12 @@ $(document).ready(function(){
|
||||||
} else {
|
} else {
|
||||||
var downloadScope = 'file';
|
var downloadScope = 'file';
|
||||||
}
|
}
|
||||||
FileActions.register(downloadScope,'Download', OC.PERMISSION_READ, function(){return OC.imagePath('core','actions/download')},function(filename){
|
FileActions.register(downloadScope,'Download', OC.PERMISSION_READ, function(){return OC.imagePath('core','actions/download');},function(filename){
|
||||||
window.location=OC.filePath('files', 'ajax', 'download.php') + encodeURIComponent('?files='+encodeURIComponent(filename)+'&dir='+encodeURIComponent($('#dir').val()));
|
window.location=OC.filePath('files', 'ajax', 'download.php') + encodeURIComponent('?files='+encodeURIComponent(filename)+'&dir='+encodeURIComponent($('#dir').val()));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
FileActions.register('all','Delete', OC.PERMISSION_DELETE, function(){return OC.imagePath('core','actions/delete')},function(filename){
|
FileActions.register('all','Delete', OC.PERMISSION_DELETE, function(){return OC.imagePath('core','actions/delete');},function(filename){
|
||||||
if(Files.cancelUpload(filename)) {
|
if(Files.cancelUpload(filename)) {
|
||||||
if(filename.substr){
|
if(filename.substr){
|
||||||
filename=[filename];
|
filename=[filename];
|
||||||
|
@ -174,7 +174,7 @@ FileActions.register('all','Delete', OC.PERMISSION_DELETE, function(){return OC.
|
||||||
$('.tipsy').remove();
|
$('.tipsy').remove();
|
||||||
});
|
});
|
||||||
|
|
||||||
FileActions.register('all','Rename', OC.PERMISSION_UPDATE, function(){return OC.imagePath('core','actions/rename')},function(filename){
|
FileActions.register('all','Rename', OC.PERMISSION_UPDATE, function(){return OC.imagePath('core','actions/rename');},function(filename){
|
||||||
FileList.rename(filename);
|
FileList.rename(filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ Files={
|
||||||
});
|
});
|
||||||
procesSelection();
|
procesSelection();
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('#fileList tr').each(function(){
|
$('#fileList tr').each(function(){
|
||||||
//little hack to set unescape filenames in attribute
|
//little hack to set unescape filenames in attribute
|
||||||
|
|
|
@ -20,5 +20,5 @@ $(document).ready(function(){
|
||||||
$('#enable_encryption').change(function(){
|
$('#enable_encryption').change(function(){
|
||||||
var checked=$('#enable_encryption').is(':checked');
|
var checked=$('#enable_encryption').is(':checked');
|
||||||
OC.AppConfig.setValue('files_encryption','enable_encryption',(checked)?'true':'false');
|
OC.AppConfig.setValue('files_encryption','enable_encryption',(checked)?'true':'false');
|
||||||
})
|
});
|
||||||
})
|
});
|
||||||
|
|
|
@ -10,7 +10,7 @@ $(document).ready(function() {
|
||||||
var app_secret = $(this).find('.configuration [data-parameter="app_secret"]').val();
|
var app_secret = $(this).find('.configuration [data-parameter="app_secret"]').val();
|
||||||
var config = $(this).find('.configuration');
|
var config = $(this).find('.configuration');
|
||||||
if (app_key != '' && app_secret != '') {
|
if (app_key != '' && app_secret != '') {
|
||||||
var pos = window.location.search.indexOf('oauth_token') + 12
|
var pos = window.location.search.indexOf('oauth_token') + 12;
|
||||||
var token = $(this).find('.configuration [data-parameter="token"]');
|
var token = $(this).find('.configuration [data-parameter="token"]');
|
||||||
if (pos != -1 && window.location.search.substr(pos, $(token).val().length) == $(token).val()) {
|
if (pos != -1 && window.location.search.substr(pos, $(token).val().length) == $(token).val()) {
|
||||||
var token_secret = $(this).find('.configuration [data-parameter="token_secret"]');
|
var token_secret = $(this).find('.configuration [data-parameter="token_secret"]');
|
||||||
|
@ -73,7 +73,7 @@ $(document).ready(function() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
OC.dialogs.alert('Please provide a valid Dropbox app key and secret.', 'Error configuring Dropbox storage')
|
OC.dialogs.alert('Please provide a valid Dropbox app key and secret.', 'Error configuring Dropbox storage');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,7 @@ OC.MountConfig={
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('.chzn-select').chosen();
|
$('.chzn-select').chosen();
|
||||||
|
|
|
@ -11,7 +11,7 @@ $(document).ready(function() {
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
if (typeof FileActions !== 'undefined') {
|
if (typeof FileActions !== 'undefined') {
|
||||||
// Add history button to files/index.php
|
// Add history button to files/index.php
|
||||||
FileActions.register('file','History', OC.PERMISSION_UPDATE, function(){return OC.imagePath('core','actions/history')},function(filename){
|
FileActions.register('file','History', OC.PERMISSION_UPDATE, function(){return OC.imagePath('core','actions/history');},function(filename){
|
||||||
|
|
||||||
if (scanFiles.scanning){return;}//workaround to prevent additional http request block scanning feedback
|
if (scanFiles.scanning){return;}//workaround to prevent additional http request block scanning feedback
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ function createVersionsDropdown(filename, files) {
|
||||||
$('#found_versions').change(function(){
|
$('#found_versions').change(function(){
|
||||||
var revision=parseInt($(this).val());
|
var revision=parseInt($(this).val());
|
||||||
revertFile(files,revision);
|
revertFile(files,revision);
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -51,5 +51,5 @@ OC.AppConfig={
|
||||||
deleteApp:function(app){
|
deleteApp:function(app){
|
||||||
OC.AppConfig.postCall('deleteApp',{app:app});
|
OC.AppConfig.postCall('deleteApp',{app:app});
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
//TODO OC.Preferences
|
//TODO OC.Preferences
|
||||||
|
|
|
@ -208,7 +208,7 @@ OC={
|
||||||
popup.prepend('<span class="arrow '+arrowclass+'"></span><h2>'+t('core', 'Settings')+'</h2><a class="close svg"></a>').show();
|
popup.prepend('<span class="arrow '+arrowclass+'"></span><h2>'+t('core', 'Settings')+'</h2><a class="close svg"></a>').show();
|
||||||
popup.find('.close').bind('click', function() {
|
popup.find('.close').bind('click', function() {
|
||||||
popup.remove();
|
popup.remove();
|
||||||
})
|
});
|
||||||
if(typeof props.loadJS !== 'undefined') {
|
if(typeof props.loadJS !== 'undefined') {
|
||||||
var scriptname;
|
var scriptname;
|
||||||
if(props.loadJS === true) {
|
if(props.loadJS === true) {
|
||||||
|
|
|
@ -11,15 +11,15 @@ ListView.generateTable=function(collumns){
|
||||||
html+='<thead>';
|
html+='<thead>';
|
||||||
html+='</head>';
|
html+='</head>';
|
||||||
html+='<tbody>';
|
html+='<tbody>';
|
||||||
html+'<tr class="template">'
|
html+'<tr class="template">';
|
||||||
$.each(collumns,function(index,collumn){
|
$.each(collumns,function(index,collumn){
|
||||||
html+='<th class="'+collumn.toLower()+'"</th>';
|
html+='<th class="'+collumn.toLower()+'"</th>';
|
||||||
});
|
});
|
||||||
html+'</tr>'
|
html+'</tr>';
|
||||||
html+='</tbody>';
|
html+='</tbody>';
|
||||||
html='</table>';
|
html='</table>';
|
||||||
return $(html);
|
return $(html);
|
||||||
}
|
};
|
||||||
|
|
||||||
ListView.prototype={
|
ListView.prototype={
|
||||||
rows:{},
|
rows:{},
|
||||||
|
@ -49,7 +49,7 @@ ListView.prototype={
|
||||||
var element=$(html);
|
var element=$(html);
|
||||||
element.append($('<img src="'+element.icon+'"/>'));
|
element.append($('<img src="'+element.icon+'"/>'));
|
||||||
element.click(element.callback);
|
element.click(element.callback);
|
||||||
tr.children('td.'+collumn).append(element)
|
tr.children('td.'+collumn).append(element);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
if(this.deleteCallback){
|
if(this.deleteCallback){
|
||||||
|
@ -68,4 +68,4 @@ ListView.prototype={
|
||||||
empty:function(){
|
empty:function(){
|
||||||
this.element.children('tr:not(.template)').remove();
|
this.element.children('tr:not(.template)').remove();
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
var dbtypes
|
var dbtypes;
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
dbtypes={
|
dbtypes={
|
||||||
sqlite:!!$('#hasSQLite').val(),
|
sqlite:!!$('#hasSQLite').val(),
|
||||||
mysql:!!$('#hasMySQL').val(),
|
mysql:!!$('#hasMySQL').val(),
|
||||||
postgresql:!!$('#hasPostgreSQL').val(),
|
postgresql:!!$('#hasPostgreSQL').val(),
|
||||||
oracle:!!$('#hasOracle').val(),
|
oracle:!!$('#hasOracle').val(),
|
||||||
}
|
};
|
||||||
|
|
||||||
$('#selectDbType').buttonset();
|
$('#selectDbType').buttonset();
|
||||||
$('#datadirContent').hide(250);
|
$('#datadirContent').hide(250);
|
||||||
|
|
|
@ -137,7 +137,7 @@ OC.Share={
|
||||||
html += '<input id="linkText" type="text" readonly="readonly" />';
|
html += '<input id="linkText" type="text" readonly="readonly" />';
|
||||||
html += '<div id="linkPass">';
|
html += '<div id="linkPass">';
|
||||||
html += '<input id="linkPassText" type="password" placeholder="Password" />';
|
html += '<input id="linkPassText" type="password" placeholder="Password" />';
|
||||||
html += '</div>'
|
html += '</div>';
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
}
|
}
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
|
|
|
@ -26,7 +26,7 @@ $(document).ready(function(){
|
||||||
var value = 'no';
|
var value = 'no';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
var value = $(this).val()
|
var value = $(this).val();
|
||||||
}
|
}
|
||||||
OC.AppConfig.setValue('core', $(this).attr('name'), value);
|
OC.AppConfig.setValue('core', $(this).attr('name'), value);
|
||||||
});
|
});
|
||||||
|
|
|
@ -96,7 +96,7 @@ OC.Settings.Apps = OC.Settings.Apps || {
|
||||||
}
|
}
|
||||||
return app;
|
return app;
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
$('#leftcontent li').each(function(index,li){
|
$('#leftcontent li').each(function(index,li){
|
||||||
|
@ -106,7 +106,7 @@ $(document).ready(function(){
|
||||||
});
|
});
|
||||||
$('#leftcontent li').keydown(function(event) {
|
$('#leftcontent li').keydown(function(event) {
|
||||||
if (event.which == 13 || event.which == 32) {
|
if (event.which == 13 || event.which == 32) {
|
||||||
$(event.target).click()
|
$(event.target).click();
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
|
@ -83,4 +83,4 @@ OC.msg={
|
||||||
$(selector).html( data.data.message ).addClass('error');
|
$(selector).html( data.data.message ).addClass('error');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
Loading…
Reference in New Issue