Explorar o código

HUE-3150 [fb] File refresh icon doesn't do anything

Romain Rigaux %!s(int64=9) %!d(string=hai) anos
pai
achega
17c5714
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      apps/filebrowser/src/filebrowser/templates/display.mako

+ 5 - 1
apps/filebrowser/src/filebrowser/templates/display.mako

@@ -386,8 +386,8 @@ ${ fb_components.menubar() }
 
     _hashPage = 1;
     _hashUpperPage = 1;
-    if (_hash != "") {
 
+    if (_hash != "") {
       if (_hash.indexOf("-") > -1) {
         _hashPage = _hash.split("-")[0].substr(2) * 1;
         _hashUpperPage = _hash.split("-")[1].substr(1) * 1;
@@ -434,6 +434,10 @@ ${ fb_components.menubar() }
       }, 300);
     });
 
+    $("#refreshBtn").click(function(){
+      window.location.reload();
+    });
+
     $("#fileArea").jHueScrollUp();
 
     if (viewModel.totalPages() < viewModel.MAX_PAGES_TO_ENABLE_SCROLLING && viewModel.mode() == "text") { // enable scrolling