demo/taxonomy-browser/taxonomy-browser-itis.js
function updateControls() {
		var query = $.trim($("input[name=query]").val());

		$("#btnPin").attr("disabled", !taxonTree.getActiveNode());
		$("#btnUnpin")
			.attr("disabled", !taxonTree.isFilterActive())
			.toggleClass("btn-success", taxonTree.isFilterActive());
		$("#btnResetSearch").attr("disabled", query.length === 0);
		$("#btnSearch").attr("disabled", query.length < 2);
	}
function updateControls() {
		var query = $.trim($("input[name=query]").val());

		$("#btnPin").attr("disabled", !taxonTree.getActiveNode());
		$("#btnUnpin")
			.attr("disabled", !taxonTree.isFilterActive())
			.toggleClass("btn-success", taxonTree.isFilterActive());
		$("#btnResetSearch").attr("disabled", query.length === 0);
		$("#btnSearch").attr("disabled", query.length < 2);
	}
function updateControls ( ) { var query = $ . trim ( $ ( "input[name=query]" ) . val ( ) ) ; $ ( "#btnPin" ) . attr ( "disabled" , ! taxonTree . getActiveNode ( ) ) ; $ ( "#btnUnpin" ) . attr ( "disabled" , ! taxonTree . isFilterActive ( ) ) . toggleClass ( "btn-success" , taxonTree . isFilterActive ( ) ) ; $ ( "#btnResetSearch" ) . attr ( "disabled" , query . length === 0 ) ; $ ( "#btnSearch" ) . attr ( "disabled" , query . length < 2 ) ; }
Update UI elements according to current status
Update UI elements according to current status