Fix ui glitch in Bootstrap publisher

This commit is contained in:
Steffen van Bergerem 2014-03-31 22:38:45 +02:00
parent faad980df0
commit 35b1ba088e

View file

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