mirror of
https://github.com/friendica/friendica
synced 2025-04-25 23:10:12 +00:00
Cleaning up, actual changes are in the next commits
- Formatting - Trailing spaces - Extraneous blank lines - Large comments
This commit is contained in:
parent
8d195dc499
commit
daa8e4f901
28 changed files with 315 additions and 828 deletions
|
@ -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);});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue