Merge pull request #4106 from jaywink/4057-bookmarklet-post-cannot-be-edited

Include missing javascript in bookmarklet to fix uneditable post content
This commit is contained in:
Jonne Haß 2013-04-06 14:41:34 -07:00
commit 65ce91bbd1
3 changed files with 14 additions and 1 deletions

View file

@ -115,6 +115,7 @@ by them self.
* Remove unnecessary dotted CSS borders. [#2940](https://github.com/diaspora/diaspora/issues/2940) * Remove unnecessary dotted CSS borders. [#2940](https://github.com/diaspora/diaspora/issues/2940)
* Fix default image url in profiles table. [#3795](https://github.com/diaspora/diaspora/issues/3795) * Fix default image url in profiles table. [#3795](https://github.com/diaspora/diaspora/issues/3795)
* Fix mobile buttons are only clickable when scrolled to the top. [#4102](https://github.com/diaspora/diaspora/issues/4102) * Fix mobile buttons are only clickable when scrolled to the top. [#4102](https://github.com/diaspora/diaspora/issues/4102)
* Fix regression in bookmarklet causing uneditable post contents. [#4057](https://github.com/diaspora/diaspora/issues/4057)
## Features ## Features

View file

@ -2,6 +2,8 @@
-# licensed under the Affero General Public License version 3 or later. See -# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file. -# the COPYRIGHT file.
= javascript_include_tag :home
#new_status_message_pane #new_status_message_pane
.span-15.last .span-15.last
%h4 %h4

View file

@ -37,8 +37,18 @@ describe("bookmarklet", function() {
}); });
}); });
}); });
describe("modified prefilled bookmarklet", function(){
it('allows changing of post content', function(){
spec.loadFixture('prefilled_bookmarklet');
$('div.mentions > div').html('Foo Bar');
_.defer(function() {
expect($("#publisher #status_message_text").val()).toEqual("Foo Bar");
});
});
});
}); });