src/js/libs/spiritual-edb.js
function(selector) {
			var texts = 'textarea, input:not([type=checkbox]):not([type=radio])';
			var field = gui.DOMPlugin.qdoc(selector);
			if(field && field !== document.activeElement) {
				field.focus();
				if (gui.CSSPlugin.matches(field, texts)) {
					field.setSelectionRange(
						field.value.length,
						field.value.length
					);
				}
			}
		}
function(selector) {
			var texts = 'textarea, input:not([type=checkbox]):not([type=radio])';
			var field = gui.DOMPlugin.qdoc(selector);
			if(field && field !== document.activeElement) {
				field.focus();
				if (gui.CSSPlugin.matches(field, texts)) {
					field.setSelectionRange(
						field.value.length,
						field.value.length
					);
				}
			}
		}
function ( selector ) { var texts = 'textarea, input:not([type=checkbox]):not([type=radio])' ; var field = gui . DOMPlugin . qdoc ( selector ) ; if ( field && field !== document . activeElement ) { field . focus ( ) ; if ( gui . CSSPlugin . matches ( field , texts ) ) { field . setSelectionRange ( field . value . length , field . value . length ) ; } } }
Refocus that form field.
@param {string} selector
Refocus that form field .