From: Hypolite Petovan Date: Sun, 26 Mar 2017 00:27:26 +0000 (-0400) Subject: Merge branch 'develop' into improvement/frio-action-links-to-buttons X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d7f80bf7e7f90485f6713ae6968311c9748bbb95;p=friendica.git Merge branch 'develop' into improvement/frio-action-links-to-buttons # Conflicts: # view/theme/frio/js/filebrowser.js # view/theme/frio/templates/filebrowser.tpl --- d7f80bf7e7f90485f6713ae6968311c9748bbb95 diff --cc view/theme/frio/js/filebrowser.js index c267de4c5d,a66309865d..d216c40f33 --- a/view/theme/frio/js/filebrowser.js +++ b/view/theme/frio/js/filebrowser.js @@@ -88,19 -88,31 +88,30 @@@ var FileBrowser = console.log("FileBrowser:", nickname, type,FileBrowser.event, FileBrowser.id ); + // We need to add the AjaxUpload to the button + FileBrowser.uploadButtons(); + - $(".error a.close").on("click", function(e) { + $(".error .close").on("click", function(e) { e.preventDefault(); $(".error").addClass("hidden"); }); - $(".folders a, .path a, .folders button, .path button").on("click", function(e) { + // Click on album link - $(".fbrowser").on("click", ".folders a, .path a", function(e) { ++ $(".fbrowser").on("click", ".folders a, .path a, .folders button, .path button", function(e) { e.preventDefault(); var url = baseurl + "/fbrowser/" + FileBrowser.type + "/" + this.dataset.folder + "?mode=none"; + $(".fbrowser-content").hide(); + $(".fbrowser .profile-rotator-wrapper").show(); // load new content to fbrowser window - $(".fbrowser").load(url,function() { - $(function() {FileBrowser.init(nickname, type, hash);}); + $(".fbrowser").load(url, function(responseText, textStatus){ + $(".profile-rotator-wrapper").hide(); + if (textStatus === 'success') { + $(".fbrowser_content").show(); + // We need to add the AjaxUpload to the button + FileBrowser.uploadButtons(); + } }); - }); //embed on click diff --cc view/theme/frio/templates/filebrowser.tpl index 3b0b24b5df,1a1bd9a675..20227f8796 --- a/view/theme/frio/templates/filebrowser.tpl +++ b/view/theme/frio/templates/filebrowser.tpl @@@ -8,37 -8,42 +8,42 @@@ {{**}}
- - +
+ + - - ++ -
- {{foreach $path as $p}}{{/foreach}} -
-
- {{foreach $path as $p}}{{$p.1}}{{/foreach}} -
++
++ {{foreach $path as $p}}{{/foreach}} ++
- {{if $folders }} -
-
    - {{foreach $folders as $f}}
  • {{/foreach}} -
-
- {{/if}} - {{if $folders }} -
-
    - {{foreach $folders as $f}}
  • {{$f.1}}
  • {{/foreach}} -
-
- {{/if}} ++ {{if $folders }} ++
++
    ++ {{foreach $folders as $f}}
  • {{/foreach}} ++
++
++ {{/if}} -
- {{foreach $files as $f}} -
- -
- {{foreach $files as $f}} -
- - -

{{$f.1}}

-
++
++ {{foreach $files as $f}} ++
++ +
+ {{/foreach}}
- {{/foreach}} -
-
- +
+ +
+
+