").val(this.Value).text(this.Text))});EnableItem(t,!0);t.change()}catch(i){MostrarNotificacion(AjaxErrorMessages.SelectAutoFillFail,3)}},error:AjaxFailure}))}function SetEnableSource(){$("*[data-enable-source]").each(function(n,t){$($(t).data("enable-source")).change(function(){var n=$(this),t=$("*[data-enable-source=#"+n.attr("id")+"]");t.each(function(){EnableSource(n,$(this))})}).trigger("change")})}function EnableSource(n,t){if(t){var i=!1;i=n.is(":checkbox")?n.is(":checked").toString()==t.data("enable-value").toString():t.data("enable-value")?n.val()==t.data("enable-value").toString():n.val()!="";EnableItem(t,i)}}function EnableItem(n,t){if(n.is('[id$="FechaFin"]')){EnableItem($('[id$="MesFin"]'),t);EnableItem($('[id$="A_oFin"]'),t);return}n.is("select")?EnableSelect(n,t):t?n.prop("disabled",!1).removeClass("disabled"):n.val("").prop("disabled","disabled").addClass("disabled")}function EnableSelect(n,t){t?n.prop("disabled",!1).removeClass("disabled").parent().removeClass("disabled"):n.val("").prop("disabled","disabled").addClass("disabled").parent().addClass("disabled")}function SetNoEditableSelect(n){$(n).val()!=""&&$(n).attr("disabled",!0).parent().append($("").attr("type","hidden").attr("id",$(n).attr("id")).attr("name",$(n).attr("name")).val($(n).val()))}function SetNoEditableSelects(){$('select[noeditable="True"]').each(function(){SetNoEditableSelect(this)})}function hasHtml(n){return n.match(/<|/ig)}function ValidateNoHtml(n){SetHtmlError(n,hasHtml(n.val()))}function SetHtmlError(n,t){$('span[data-valmsg-for="'+n.attr("name")+'"]').remove();t?$(n).addClass("input-validation-error").after($("").addClass("field-validation-error").attr("data-valmsg-for",n.attr("name")).attr("data-valmsg-replace","true").text(customErrorMesseges.InvalidCharacters)):$(n).removeClass("input-validation-error")}function SetValidateNoHtml(){$('input[type="text"]').on("input propertychange paste",function(){ValidateNoHtml($(this))});$("textarea").on("input propertychange paste",function(){ValidateNoHtml($(this))})}function SetSection(){var n=$("#TituloSeccion").val(),t=$("#NombreSeccion").val();$("form#form0").attr("action",t);$("p.big").text(n)}function SetShowOnCheck(){$("[data-on-check-show], [data-on-check-hide]").on("click",function(){var n=$(this),t=n.is(":checked");t?($(n.data("on-check-show")).show(),$(n.data("on-check-hide")).hide()):($(n.data("on-check-show")).hide(),$(n.data("on-check-hide")).show())})}function Init(){$.each(initStack,function(){this()})}var _defaultOption,customErrorMesseges,AjaxErrorMessages,gaEvent,cssClass,initStack;window.addEventListener("DOMContentLoaded",function(){_defaultOption=$("").val("").text("Selecciona");customErrorMesseges={InvalidCharacters:"Los caracteres (< > & #) no son válidos"};AjaxErrorMessages={Status000:"Revisa tu conexión",Status404:"No se ha podido realizar la acción",Status500:"No se ha podido realizar la acción. Vuelve a intentarlo",ParseError:"No se ha podido realizar la acción. Vuelve a intentarlo",TimeOut:"El tiempo de espera se ha agotado",RequestAborted:"No se ha podido realizar la acción. Vuelve a intentarlo",UnknownError:"Ha habido un fallo inesperado",SelectAutoFillFail:"No se han cargado los datos. Carga de nuevo la página"};Init()});cssClass=["","notify-info","notify-warning","notify-error",];initStack=[];initStack.push(SetEnableEvents);initStack.push(SetErrorClasses);initStack.push(SetSelectAutofillEvents);initStack.push(SetEnableSource);initStack.push(SetNoEditableSelects);initStack.push(SetValidateNoHtml);initStack.push(SetSection);initStack.push(SetShowOnCheck)
Datos de tu cuenta
×
Escribe una contraseña que contenga
Al menos 8 caracteres y no más de 15
Al menos una letra
Al menos un número
Al menos un signo de puntuación habitual
Te recomendamos no incluir tu nombre de usuario, nombre ni año de nacimiento.