INNER CODE UNIT · JavaScript

touchUpDocument

Keyfactor/signserver-ce · signserver/modules/SignServer-Admin-web/src/main/webapp/resources/community/js/ejbca-common.js:66

    var touchUpDocument = function() {
        // Hide elements that should not be shown when JS is enabled
    	forEachInputElementByTagNameAndStyleClass(["input", "label", "select"], "jsHide", function(inputField) { inputField.style.display = "none"; });
        // Show elements that should not be hidden when JS is disabled
    	forEachInputElementByTagNameAndStyleClass(["input", "label", "select"], "jsShow", function(inputField) { inputField.style.display = "inherit"; });
    	// Use title as HTML5 placeholder for elements marked with the style class (JSF2.0 does not support HTML5 attributes)
    	forEachInputElementByTagNameAndStyleClass(["input", "textarea"], "jsTitleAsPlaceHolder", function(inputField) {
    		inputField.placeholder = inputField.title;
    		inputField.title = "";
    	});
    	// Delay "keyup" events for input elements marked with the provided styleClassName. (JSF2.0 AJAX work around.)
    	forEachInputElementByTagNameAndStyleClass(["input"], "jsDelayKeyUp", function(inputField) {
    		new KeyUpEventDelay(inputField, 400);
    	});
    };

    /** Set focus to component by class names (JSF2.0 does not support HTML5 attributes like autofocus) */
    var handleAutoFocus = function() {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…