var titletop = item.nodes.docktitle.getY()-docky-buffer;
var containery = this.nodes.container.getY();
var containerheight = containery-docky+this.nodes.buttons.get('offsetHeight');
+ var scrolltop = panel.contentBody.get('scrollTop');
panel.contentBody.setStyle('height', 'auto');
panel.removeClass('oversized_content');
var panelheight = panel.get('offsetHeight');
} else {
panel.setTop(titletop-containerheight+buffer);
}
+
+ if (scrolltop) {
+ panel.contentBody.set('scrollTop', scrolltop);
+ }
}
if (this.cfg.position=='right') {
*/
M.block_navigation.classes.tree.prototype.init_load_ajax = function(e, branch) {
e.stopPropagation();
- if (e.target.get('nodeName').toUpperCase() != 'P') {
+ var target = e.target;
+ if (target.test('span')) {
+ target = target.ancestor('p');
+ }
+ if (!target || !target.test('p')) {
return true;
}
var cfginstance = '', Y = this.Y;
data:'elementid='+branch.id+'&id='+branch.branchid+'&type='+branch.type+'&sesskey='+M.cfg.sesskey+cfginstance,
on: {
complete:this.load_ajax,
- success:function() {Y.detach('click', this.init_load_ajax, e.target);}
+ success:function() {Y.detach('click', this.init_load_ajax, target);}
},
context:this,
arguments:{
- target:e.target
+ target:target
}
});
return true;