Cleaning up, actual changes are in the next commits

- Formatting
- Trailing spaces
- Extraneous blank lines
- Large comments
This commit is contained in:
Hypolite Petovan 2017-01-08 01:49:13 +11:00
parent 8d195dc499
commit daa8e4f901
28 changed files with 315 additions and 828 deletions

View file

@ -54,13 +54,13 @@
/*
* IMPORTANT
*
* This is a modified version to work with
*
* This is a modified version to work with
* the frio theme.and bootstrap modals
*
*
* The origninal file is under:
* js/filebrowser.js
*
*
*/
@ -93,18 +93,18 @@ var FileBrowser = {
$(".error").addClass("hidden");
});
$(".folders a, .path a").on("click", function(e){
$(".folders a, .path a").on("click", function(e) {
e.preventDefault();
var url = baseurl + "/fbrowser/" + FileBrowser.type + "/" + this.dataset.folder + "?mode=none";
// load new content to fbrowser window
$(".fbrowser").load(url,function(){
$(".fbrowser").load(url,function() {
$(function() {FileBrowser.init(nickname, type, hash);});
});
});
//embed on click
$(".photo-album-photo-link").on('click', function(e){
$(".photo-album-photo-link").on('click', function(e) {
e.preventDefault();
var embed = "";
@ -142,11 +142,6 @@ var FileBrowser = {
$('#modal').modal('hide');
// update autosize for this textarea
autosize.update($(".text-autosize"));
// if (id!=="") {
// commentExpand(FileBrowser.id);
// //$("#comment-edit-text-558").empty();
// };
});
if ($("#upload-image").length)
@ -168,7 +163,7 @@ var FileBrowser = {
var url = baseurl + "/fbrowser/" + FileBrowser.type + "?mode=none"
// load new content to fbrowser window
$(".fbrowser").load(url,function(){
$(".fbrowser").load(url,function() {
$(function() {FileBrowser.init(nickname, type, hash);});
});
}
@ -193,7 +188,7 @@ var FileBrowser = {
var url = baseurl + "/fbrowser/" + FileBrowser.type + "?mode=none"
// load new content to fbrowser window
$(".fbrowser").load(url,function(){
$(".fbrowser").load(url,function() {
$(function() {FileBrowser.init(nickname, type, hash);});
});
}