From 5e28c8f6eca932874af1e4cb3c42b73c71309571 Mon Sep 17 00:00:00 2001 From: danielgrippi Date: Tue, 3 Jan 2012 11:49:33 -0800 Subject: [PATCH] fix backing out of photo-only post cuke --- app/views/photos/_new_photo.haml | 4 ---- features/posts_from_main_page.feature | 1 - 2 files changed, 5 deletions(-) diff --git a/app/views/photos/_new_photo.haml b/app/views/photos/_new_photo.haml index 8988b30b9..ccfd73eab 100644 --- a/app/views/photos/_new_photo.haml +++ b/app/views/photos/_new_photo.haml @@ -72,10 +72,6 @@ if ( $('.publisher_photo').length == 0){ textarea.removeClass("with_attachments"); textarea.css('paddingBottom', ''); - - if( $('#status_message_text').attr("value") == ""){ - Publisher.close() - } } }); } diff --git a/features/posts_from_main_page.feature b/features/posts_from_main_page.feature index 3776d56a4..c749c2a24 100644 --- a/features/posts_from_main_page.feature +++ b/features/posts_from_main_page.feature @@ -75,7 +75,6 @@ Feature: posting from the main page And I click to delete the first uploaded photo And I wait for the ajax to finish Then I should not see an uploaded image within the photo drop zone - And the publisher should be collapsed Scenario: back out of uploading a picture to a post with text Given I expand the publisher