From 8df0bb85fe36fd26e2919a81e868124311f1d366 Mon Sep 17 00:00:00 2001 From: Joe Bivins Date: Sat, 3 Mar 2012 12:29:09 -0500 Subject: [PATCH] Wrap the publisher params tag in a div instead of a paragraph. Safari 4.1.3 cited the closing params tag as being an unmatched tag. Changing the paragraph to a div causes the error to disappear. --- app/views/shared/_publisher.html.haml | 2 +- public/javascripts/app/models/post.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/shared/_publisher.html.haml b/app/views/shared/_publisher.html.haml index 2c76eab50..4c8d86094 100644 --- a/app/views/shared/_publisher.html.haml +++ b/app/views/shared/_publisher.html.haml @@ -12,7 +12,7 @@ .content_creation = form_for(StatusMessage.new) do |status| = status.error_messages - %p + %div %params #publisher_textarea_wrapper = link_to( image_tag('deletelabel.png'), "#", :id => "hide_publisher", :title => t('.discard_post')) diff --git a/public/javascripts/app/models/post.js b/public/javascripts/app/models/post.js index 1a27b5a8a..df3abb01e 100644 --- a/public/javascripts/app/models/post.js +++ b/public/javascripts/app/models/post.js @@ -24,7 +24,7 @@ app.models.Post = Backbone.Model.extend({ var timestamp = new Date(this.get(field)) /1000; if (isNaN(timestamp)) { - timestamp = this.legacyTimeOf(field); + timestamp = this.legacyTimeOf(field); } return timestamp;