diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 3afefd3c2ec729adb6ee63655be038b1d8ad3f38..cce1e77720cc7239481ca18a2040063c358e39fa 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -128,6 +128,6 @@ class ApplicationController < ActionController::Base end def max_time - params[:max_time] ? Time.at(params[:max_time].to_i) : Time.now + params[:max_time] ? Time.at(params[:max_time].to_i) : Time.now + 1 end end diff --git a/public/javascripts/app/views/publisher_view.js b/public/javascripts/app/views/publisher_view.js index 2315b8c3d46e565ca8409b16536a3d195c9322df..989d2ce9af2b36035ebd34c225557520abee8a0c 100644 --- a/public/javascripts/app/views/publisher_view.js +++ b/public/javascripts/app/views/publisher_view.js @@ -31,6 +31,7 @@ app.views.Publisher = Backbone.View.extend({ "photos" : serializedForm["photos[]"], "services" : serializedForm["services[]"] }, { + url : "/status_messages", success : function() { app.stream.collection.add(statusMessage.toJSON()); }