Pārlūkot izejas kodu

fix icon loading for tab edit

CauseFX 5 gadi atpakaļ
vecāks
revīzija
087b402eef

+ 2 - 1
api/classes/organizr.class.php

@@ -6383,11 +6383,12 @@ class Organizr
 		$goodIcons['results'] = [];
 		$goodIcons['limit'] = $limit;
 		$goodIcons['page'] = $page;
+		$goodIcons['term'] = $term;
 		$allIcons = file_get_contents($this->root . '/js/icons.json');
 		$iconListing = json_decode($allIcons, true);
 		foreach ($iconListing as $setKey => $set) {
 			foreach ($set['children'] as $k => $v) {
-				if (stripos($v['text'], $term) !== false) {
+				if (stripos($v['text'], $term) !== false || !$term) {
 					$goodIcons['results'][] = $v;
 				}
 			}

+ 0 - 1
api/pages/settings-tab-editor-tabs.php

@@ -35,7 +35,6 @@ function get_page_settings_tab_editor_tabs($Organizr)
 			    //cache: true
 			},
 			placeholder: \'Search for an icon\',
-			minimumInputLength: 1,
 			templateResult: formatIcon,
 			templateSelection: formatIcon,
 			allowClear: true