new-community.js
687 Bytes
modulejs.define("NewCommunity", ['jquery'], function($) {
function replace_mandatory_message() {
$(".required-field").first()
.replaceWith("<span class='required-field'> Os campos em destaque<label class='pseudoformlabel'> (*)</label> são obrigatórios. </span>");
}
function remove_image_builder_text() {
$("label:contains('Image builder')").hide();
}
function hide_organization_template_fields(){
$('#template-options').hide();
}
return {
isCurrentPage: function() {
return true;
},
init: function() {
replace_mandatory_message();
remove_image_builder_text();
hide_organization_template_fields();
}
}
})