Permalink
Browse files

Javascript en la carga de estados

  • Loading branch information...
1 parent 760a1ee commit ec8dcf71fe7594038683e11e04fc3833f66217b9 @martinvega committed Mar 22, 2012
@@ -1,3 +0,0 @@
-# Place all the behaviors and hooks related to the matching controller here.
-# All this logic will automatically be available in application.js.
-# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
@@ -16,6 +16,12 @@ $ ->
window.open('http://www.directv.com.ar/')
window.focus().delay(100)
+ $('#search_contact').click ->
+ $('#load_contact').fadeOut(500)
+ $('#load_contact').fadeIn(500)
+
+
+
@@ -1,3 +0,0 @@
-# Place all the behaviors and hooks related to the matching controller here.
-# All this logic will automatically be available in application.js.
-# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
@@ -1,3 +0,0 @@
-# Place all the behaviors and hooks related to the matching controller here.
-# All this logic will automatically be available in application.js.
-# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
@@ -1,3 +0,0 @@
-# Place all the behaviors and hooks related to the matching controller here.
-# All this logic will automatically be available in application.js.
-# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
@@ -1,3 +0,0 @@
-# Place all the behaviors and hooks related to the matching controller here.
-# All this logic will automatically be available in application.js.
-# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
@@ -1,3 +0,0 @@
-// Place all the styles related to the Campaigns controller here.
-// They will automatically be included in application.css.
-// You can use Sass (SCSS) here: http://sass-lang.com/
@@ -85,6 +85,7 @@ a {
}
&.important_action {
+ padding-top: 10px;
font-weight: bold;
color: $second-color;
}
@@ -1,3 +0,0 @@
-// Place all the styles related to the contact controller here.
-// They will automatically be included in application.css.
-// You can use Sass (SCSS) here: http://sass-lang.com/
@@ -1,3 +0,0 @@
-// Place all the styles related to the Contact_States controller here.
-// They will automatically be included in application.css.
-// You can use Sass (SCSS) here: http://sass-lang.com/
@@ -1,3 +0,0 @@
-// Place all the styles related to the Contacts controller here.
-// They will automatically be included in application.css.
-// You can use Sass (SCSS) here: http://sass-lang.com/
@@ -1,3 +0,0 @@
-// Place all the styles related to the Users controller here.
-// They will automatically be included in application.css.
-// You can use Sass (SCSS) here: http://sass-lang.com/
@@ -1,3 +1,4 @@
+<div id="load_contact">
<%= form_for @contact, :url => {:controller => :contacts,
:action => :update_state, :id => @contact.id} do |f| %>
<% if @contact.errors.any? %>
@@ -44,6 +45,10 @@
</div>
<% end %>
-<div id="links">
- <%= link_to 'Buscar Contacto', load_contacts_contacts_path, :class => :important_action %>
+</div>
+
+<div id="links">
+ <div id="search_contact">
+ <%= link_to 'Buscar Contacto', load_contacts_contacts_path, :class => :important_action %>
+ </div>
</div>

0 comments on commit ec8dcf7

Please sign in to comment.