Эх сурвалжийг харах

修復tooltip沒有正常顯示問題

manto07m 3 жил өмнө
parent
commit
2a15c1d824
1 өөрчлөгдсөн 4 нэмэгдсэн , 1 устгасан
  1. 4 1
      other-list.php

+ 4 - 1
other-list.php

@@ -78,7 +78,7 @@ if (!isset($_SESSION['loggedin'])) {
 									<search-bar></search-bar>
 									<li id="reset" style="padding-top: 10px;">
 										<div class="input-group input-search" style="table-layout: auto;">
-											<button class="btn btn-primary" type="button" id="resetbtn" data-toggle="tooltip" data-placement="bottom" title="清除搜尋結果" data-original-title="清除搜尋結果"><i class="fa fa-undo"></i></button>
+											<button class="btn btn-primary" type="button" id="resetbtn" data-toggle="tooltip" ><i class="fa fa-undo"></i></button>
 										</div>
 									</li>
 								</ul>
@@ -226,6 +226,9 @@ if (!isset($_SESSION['loggedin'])) {
 				$("#treeAjaxHTML").jstree("search", search);
 			}
 		});
+		
+		$('[data-toggle="tooltip"]').tooltip({container: "body",placement:"right",title:"重置搜尋結果"});
+		
 	</script>
 	<script src="assets/vendor/jstree/jstree.js"></script>