diff --git a/core/js/listview.js b/core/js/listview.js index 239792d634..71466c9020 100644 --- a/core/js/listview.js +++ b/core/js/listview.js @@ -46,7 +46,7 @@ ListView.prototype={ $.each(this.hoverElement,function(index,collumn){ $.each(collumn,function(index,element){ var html=''; - element=$(html); + element = $(html); element.append($('')); element.click(element.callback); tr.children('td.'+collumn).append(element); @@ -61,7 +61,7 @@ ListView.prototype={ }, addHoverElement:function(column,icon,title,callback){ if(!this.hoverElements[column]){ - this.hoverElements[column]=[]; + this.hoverElements[column] = []; } this.hoverElements[row].push({icon:icon,callback:callback,title:title}); }, diff --git a/core/js/multiselect.js b/core/js/multiselect.js index 03408033db..2174b74622 100644 --- a/core/js/multiselect.js +++ b/core/js/multiselect.js @@ -279,7 +279,7 @@ } list.append(list.find('li.creator')); var pos=button.position(); - if(($(document).height() > (button.offset().top+button.outerHeight() + list.children().length * button.height()) && + if(($(document).height() > (button.offset().top + button.outerHeight() + list.children().length * button.height()) && $(document).height() - button.offset().top > (button.offset().top+button.outerHeight() + list.children().length * button.height())) || $(document).height()/2 > button.offset().top ) {