Browse Source

visual changes to bookmark settings panel

CauseFX 5 years ago
parent
commit
106590681b
2 changed files with 9 additions and 4 deletions
  1. 2 2
      api/plugins/bookmark.php
  2. 7 2
      api/plugins/js/bookmark-settings.js

+ 2 - 2
api/plugins/bookmark.php

@@ -105,14 +105,14 @@ class Bookmark extends Organizr
 										<i class="sticon ti-layout-tab-v text-white"></i>
 									</div>
 									<small lang="en">Checking for Bookmark tab...</small>
-									<span class="text-muted result">...checking...</span>
+									<span class="text-muted result"><i class="fa fa-spin fa-refresh"></i></span>
 								</li>
 								<li class="bookmark-check-category">
 									<div class="bg-success">
 										<i class="ti-layout-list-thumb text-white"></i>
 									</div>
 									<small lang="en">Checking for bookmark default category...</small>
-									<span class="text-muted result">...checking...</span>
+									<span class="text-muted result"><i class="fa fa-spin fa-refresh"></i></span>
 								</li>
 							</ul>
 						</div>

+ 7 - 2
api/plugins/js/bookmark-settings.js

@@ -9,6 +9,7 @@ function bookmarkCheckForTab() {
 	organizrAPI2('GET', 'api/v2/plugins/bookmark/setup/tab').success(function (data) {
 		try {
 			let response = data.response;
+			$('.bookmark-check-tab small').text('Bookmark Tab');
 			$('.bookmark-check-tab .result').text(response.message);
 		} catch (e) {
 			organizrCatchError(e, data);
@@ -19,14 +20,18 @@ function bookmarkCheckForTab() {
 	});
 }
 $('body').arrive('.bookmark-check-tab', {onceOnly: false}, function() {
-	bookmarkCheckForTab()
-	bookmarkCheckForCategory();
+	setTimeout(function(){
+		bookmarkCheckForTab()
+		bookmarkCheckForCategory();
+	}, 500);
+
 });
 function bookmarkCheckForCategory(){
 	// Let check for tab with bookmark url
 	organizrAPI2('GET','api/v2/plugins/bookmark/setup/category').success(function(data) {
 		try {
 			let response = data.response;
+			$('.bookmark-check-category small').text('Bookmark Categories');
 			$('.bookmark-check-category .result').text(response.message);
 		}catch(e) {
 			organizrCatchError(e,data);