addressing hallo toolbar appearing in wrong place

This commit is contained in:
Dave Cranwell 2015-02-12 15:39:06 +00:00
parent a8f4c3296d
commit dfa18ba131

View file

@ -35,12 +35,15 @@ For example, they don't assume the presence of a 'delete' button - it's up to th
self.container.fadeOut();
};
self._markAdded = function() {
self.menu.addClass('stream-menu-closed');
self.container.hide();
self.container.slideDown();
self.hideMenu();
// focus first suitable input found
$('.input input,.input textarea,.input .richtext', self.container).first().focus();
var timeout = setTimeout(function(){
$('.input input,.input textarea,.input .richtext', self.container).first().focus();
}, 10)
};
self.getIndex = function() {
return parseInt(indexField.val(), 10);
@ -73,7 +76,8 @@ For example, they don't assume the presence of a 'delete' button - it's up to th
var members = [];
self.menu = countField.siblings('.stream-menu');
self.menu.click(function(){
self.menu.click(function(e){
e.preventDefault();
self.toggleMenu();
});