MCPcopy Index your code
hub / github.com/zxlie/FeHelper / _syncStatusBarEnabled

Function _syncStatusBarEnabled

apps/json-format/format-lib.js:982–1006  ·  view source on GitHub ↗
(enabled)

Source from the content-addressed store, hash-verified

980 };
981
982 let _syncStatusBarEnabled = function (enabled) {
983 statusBarEnabled = enabled !== false;
984
985 if (!statusBarEnabled) {
986 $('.boxOpt').hide();
987 let selected = $('#jfContent .item.x-selected').first();
988 if (selected.length) {
989 _toogleStatusBar(selected, true);
990 } else {
991 jfStatusBar && jfStatusBar.hide();
992 $('body').addClass('hide-status-bar');
993 }
994 return;
995 }
996
997 let selected = $('#jfContent .item.x-selected').first();
998 if (!selected.length) {
999 selected = $('#jfContent .item').first();
1000 }
1001 if (!selected.length) {
1002 return;
1003 }
1004
1005 _selectJsonElement(selected, {scroll: false});
1006 };
1007
1008 let _getSelectedJsonElement = function () {
1009 let selected = $('#jfContent .item.x-selected').first();

Callers 1

format-lib.jsFile · 0.85

Calls 5

_toogleStatusBarFunction · 0.85
_selectJsonElementFunction · 0.85
hideMethod · 0.80
firstMethod · 0.80
$Function · 0.50

Tested by

no test coverage detected