Skip to content

Instantly share code, notes, and snippets.

@ian
Created November 24, 2009 23:44
Show Gist options
  • Save ian/242340 to your computer and use it in GitHub Desktop.
Save ian/242340 to your computer and use it in GitHub Desktop.
--- untitled
+++ (clipboard)
@@ -1,6 +1,7 @@
+<%= javascript_include_merged :product_details, :event_details %>
+<%= stylesheet_link_merged :product_details %>
+
<%- content_for :head do -%>
- <%= javascript_include_merged :product_details, :event_details %>
- <%= stylesheet_link_merged :product_details %>
<%= google_maps_include_tags %>
<script type="text/javascript" charset="utf-8">
@@ -11,17 +12,17 @@
var lat_lng = null;
<%- end -%>
- // Steal the 'Today' button and make it 'Clear' instead
- $.extend(DP_jQuery.datepicker,{
- _gotoToday:function(field){
- DP_jQuery.datepicker._hideDatepicker();
- $(field).val('');
- $('#scheduling-options').hide();
- $('#product_reminder_number_of_days_before_event').val('None')
- }
- });
-
$(document).ready(function(){
+ // Steal the 'Today' button and make it 'Clear' instead
+ $.extend(DP_jQuery.datepicker,{
+ _gotoToday:function(field){
+ DP_jQuery.datepicker._hideDatepicker();
+ $(field).val('');
+ $('#scheduling-options').hide();
+ $('#product_reminder_number_of_days_before_event').val('None')
+ }
+ });
+
$("#product_location").labelify({ labeledClass: "labelHighlight" });
$("#product_message").labelify({ labeledClass: "labelHighlight" });
$("#product_address").labelify({ labeledClass: "labelHighlight" });
@@ -85,7 +86,7 @@
<% geo_loc = @product.geoloc || Geokit::GeoLoc.new %>
-<% if (logged_in? && current_user.email.empty?) && @product.notify_host_when_guests_reply == "none" -%>
+<% if current_user.email.empty? && @product.notify_host_when_guests_reply == "none" -%>
<script type="text/javascript" charset="utf-8">
$(function(){
$('#product_notify_host_when_guests_reply_email_each').bind("change click keyup keydown",function(){
@@ -349,4 +350,4 @@
<% box_with_filled_header 'Additional Message / Instructions', :id => 'message-box', :style => 'width:720px;margin-top:8px;height:80px;float:right' do %>
<%= f.text_area :message, :style => 'width:619px;height:60px;background:#000;border:0;font-size:13px', :title => default_message_text_for(@product) %>
-<% end %>
\ No newline at end of file
+<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment