From 64b11b093f8460577124da458f1ffe396111ee85 Mon Sep 17 00:00:00 2001 From: Fabio Teixeira Date: Thu, 2 Oct 2014 16:38:22 -0300 Subject: [PATCH] correcoes_aderencia: Remove unnecessary animation on software creation --- public/mpog-software-validations.js | 26 -------------------------- public/style.css | 8 -------- views/mpog_software_plugin_myprofile/new_software.html.erb | 6 +++--- 3 files changed, 3 insertions(+), 37 deletions(-) diff --git a/public/mpog-software-validations.js b/public/mpog-software-validations.js index 9d89d63..9f0a6aa 100644 --- a/public/mpog-software-validations.js +++ b/public/mpog-software-validations.js @@ -50,19 +50,8 @@ function hide_infos(){ jQuery(".database-button-hide").hide(); jQuery(".libraries-button-hide").hide(); jQuery(".operating-system-button-hide").hide(); - - -} - -function animate_fields() { - jQuery(".expand-field").focus(function(){ - jQuery(this).switchClass("expand-field", "expand-field-focus", 700, "easeInOutQuad"); - }).blur(function(){ - jQuery(this).switchClass("expand-field-focus", "expand-field", 700, "easeInOutQuad"); - }); } - jQuery(document).ready(function(){ var dynamic_tables = ["dynamic-databases", "dynamic-languages", "dynamic-libraries","dynamic-operating_systems"]; @@ -141,19 +130,4 @@ jQuery(document).ready(function(){ jQuery(".libraries-button-show").hide(); jQuery(".libraries-button-hide").show(); }); - - jQuery(".operating_systems-button-hide").click(function(event){ - event.preventDefault(); - jQuery(".operating_systems-info").hide(); - jQuery(".operating_systems-button-show").show(); - jQuery(".operating_systems-button-hide").hide(); - }); - - jQuery(".operating_systems-button-show").click(function(event){ - event.preventDefault(); - jQuery(".operating_systems-info").show(); - jQuery(".operating_systems-button-show").hide(); - jQuery(".operating_systems-button-hide").show(); - }); - animate_fields(); }); diff --git a/public/style.css b/public/style.css index bf14f0c..cc4dfec 100644 --- a/public/style.css +++ b/public/style.css @@ -38,14 +38,6 @@ border: none; } -.expand-field { - height: 80px; -} - -.expand-field-focus { - height: 300px; -} - .mpog-incomplete-percentage img { margin-left: 5px; } diff --git a/views/mpog_software_plugin_myprofile/new_software.html.erb b/views/mpog_software_plugin_myprofile/new_software.html.erb index 921fb77..6beed7c 100644 --- a/views/mpog_software_plugin_myprofile/new_software.html.erb +++ b/views/mpog_software_plugin_myprofile/new_software.html.erb @@ -77,17 +77,17 @@ <%= swf.radio_button(:intern,false)%>
<%= swf.label "operating_platform", _("Operating Platform: ") %>
- <%= swf.text_area(:operating_platform, :class=>"expand-field") %> + <%= swf.text_area(:operating_platform) %>
<%= swf.label "objectives", _("Objectives: ")%>
- <%= required swf.text_area(:objectives, :class=>"expand-field") %> + <%= required swf.text_area(:objectives) %>
<%= swf.label "features", _("Features: ")%>
- <%= required swf.text_area(:features, :class=>"expand-field") %> + <%= required swf.text_area(:features) %>
-- libgit2 0.21.2