Merge pull request #4890 from svbergerem/fix-bootstrap-publisher-ui-glitch

Fix ui glitch in Bootstrap publisher
This commit is contained in:
Jonne Haß 2014-04-01 10:45:40 +02:00
commit 3e68aaaa3b

View file

@ -9,8 +9,9 @@
* *
* Modifcations for Diaspora: * Modifcations for Diaspora:
* *
* Prevent replacing the wrong text by marking the replacement position with a special character * Prevent replacing the wrong text by marking the replacement position with a special character
* Don't add a space after inserting a mention * Don't add a space after inserting a mention
* Only use the first div as a wrapperBox
*/ */
(function ($, _, undefined) { (function ($, _, undefined) {
@ -88,7 +89,7 @@
elmInputWrapper = elmInputBox.parent(); elmInputWrapper = elmInputBox.parent();
elmWrapperBox = $(settings.templates.wrapper()); elmWrapperBox = $(settings.templates.wrapper());
elmInputBox.wrapAll(elmWrapperBox); elmInputBox.wrapAll(elmWrapperBox);
elmWrapperBox = elmInputWrapper.find('> div'); elmWrapperBox = elmInputWrapper.find('> div').first();
elmInputBox.attr('data-mentions-input', 'true'); elmInputBox.attr('data-mentions-input', 'true');
elmInputBox.bind('keydown', onInputBoxKeyDown); elmInputBox.bind('keydown', onInputBoxKeyDown);