|
|
|
@ -302,13 +302,17 @@ $.fn.onEnterPress = function(handler) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function labelFor(input) {
|
|
|
|
|
var selector = "label[for='{id}']",
|
|
|
|
|
key = "string" == typeof(input) ? input
|
|
|
|
|
: $(input).attr("id") || $(input).attr("name");
|
|
|
|
|
let selector = "label[for='{id}']",
|
|
|
|
|
str = "string" == typeof(input),
|
|
|
|
|
obj = $(input),
|
|
|
|
|
key = str ? input
|
|
|
|
|
: obj.attr("id") || obj.attr("name");
|
|
|
|
|
if (!key) return "";
|
|
|
|
|
|
|
|
|
|
selector = selector.replace(/{id}/gi, key);
|
|
|
|
|
return $(selector).text();
|
|
|
|
|
return $(selector).text()
|
|
|
|
|
|| obj.attr("title")
|
|
|
|
|
|| obj.attr("placeholder");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function validationFailureHandler() {
|
|
|
|
|