Commit b95b5d4b201d89de6ecb81306346cf66e1c24a5c
1 parent
413758db
Exists in
master
and in
5 other branches
Remove text 'Image builder' into create community
Signed-off-by: Fabio Teixeira <fabio1079@gmail.com> Signed-off-by: Luciano Prestes <lucianopcbr@gmail.com>
Showing
1 changed file
with
7 additions
and
2 deletions
Show diff stats
public/views/new-community.js
| 1 | -modulejs.define("NewCommunity", ['jquery'], function($){ | 1 | +modulejs.define("NewCommunity", ['jquery'], function($) { |
| 2 | 2 | ||
| 3 | - function replace_mandatory_message(){ | 3 | + function replace_mandatory_message() { |
| 4 | $(".required-field").first() | 4 | $(".required-field").first() |
| 5 | .replaceWith("<span class='required-field'> Os campos em destaque<label class='pseudoformlabel'> (*)</label> são obrigatórios. </span>"); | 5 | .replaceWith("<span class='required-field'> Os campos em destaque<label class='pseudoformlabel'> (*)</label> são obrigatórios. </span>"); |
| 6 | } | 6 | } |
| 7 | 7 | ||
| 8 | + function remove_image_builder_text() { | ||
| 9 | + $("label:contains('Image builder')").hide(); | ||
| 10 | + } | ||
| 11 | + | ||
| 8 | return { | 12 | return { |
| 9 | 13 | ||
| 10 | isCurrentPage: function() { | 14 | isCurrentPage: function() { |
| @@ -13,6 +17,7 @@ modulejs.define("NewCommunity", ['jquery'], function($){ | @@ -13,6 +17,7 @@ modulejs.define("NewCommunity", ['jquery'], function($){ | ||
| 13 | 17 | ||
| 14 | init: function() { | 18 | init: function() { |
| 15 | replace_mandatory_message(); | 19 | replace_mandatory_message(); |
| 20 | + remove_image_builder_text(); | ||
| 16 | } | 21 | } |
| 17 | } | 22 | } |
| 18 | }) | 23 | }) |