Przeglądaj źródła

fix path area not dismissing the popover

CauseFX 5 lat temu
rodzic
commit
79a8c6bd90
3 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      api/functions/organizr-functions.php
  2. 1 1
      js/custom.js
  3. 0 0
      js/custom.min.js

+ 1 - 1
api/functions/organizr-functions.php

@@ -408,7 +408,7 @@ trait OrganizrFunctions
 		$type = (array_search(false, $paths)) ? 'Not Writable' : 'Writable';
 		$result = '<li class="mouse" onclick="toggleWritableFolders();"><div class="bg-info"><i class="mdi mdi-folder mdi-24px text-white"></i></div><span class="text-muted hidden-xs m-t-10" lang="en">Organizr Paths</span> ' . $type . '</li>';
 		foreach ($paths as $k => $v) {
-			$items .= '<li class="folders-writable hidden"><div class="bg-primary"><i class="mdi mdi-folder mdi-24px text-white"></i></div><button type="button" class="btn btn-default btn-outline popover-info pull-right" lang="en" data-container="body" title="" data-toggle="popover" data-placement="left" data-content="' . $v['path'] . '" data-original-title="File Path">' . $k . '</button> ' . (($v['writable']) ? 'Writable' : 'Not Writable') . '</li>';
+			$items .= '<li class="folders-writable hidden"><div class="bg-primary"><i class="mdi mdi-folder mdi-24px text-white"></i></div><a tabindex="0" type="button" class="btn btn-default btn-outline popover-info pull-right" lang="en" data-container="body" title="" data-toggle="popover" data-placement="left" data-content="' . $v['path'] . '" data-original-title="File Path">' . $k . '</a> ' . (($v['writable']) ? 'Writable' : 'Not Writable') . '</li>';
 		}
 		return $result . $items;
 	}

+ 1 - 1
js/custom.js

@@ -159,7 +159,7 @@ function pageLoad(){
     /* ===== Popover Initialization ===== */
 
     $(function () {
-        $('[data-toggle="popover"]').popover();
+        $('[data-toggle="popover"]').popover({trigger: "focus"});
     });
 
     $(function () {

Plik diff jest za duży
+ 0 - 0
js/custom.min.js


Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików