MCPcopy Index your code
hub / github.com/TruthHun/BookStack / toggle_btn_clear

Function toggle_btn_clear

static/js/bookstack.js:482–490  ·  view source on GitHub ↗
(show)

Source from the content-addressed store, hash-verified

480 }
481
482 function toggle_btn_clear(show){
483 if(show){
484 $(".article-search .input-group-addon-clear").css({"display":"table-cell"});
485 $(".hung-read-link div").addClass("hidden");
486 }else{
487 $(".article-search .input-group-addon-clear").attr("style","");
488 $(".hung-read-link div").removeClass("hidden");
489 }
490 }
491
492 $("#searchForm [name=keyword]").keyup(function () {
493 toggle_btn_clear($.trim($(this).val()));

Callers 1

bookstack.jsFile · 0.85

Calls 1

$Function · 0.50

Tested by

no test coverage detected