diff options
author | kondou <kondou@ts.unde.re> | 2014-03-03 17:11:23 +0100 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2014-06-02 21:09:41 +0200 |
commit | 770382aea9007c8034781b14fa3184b7f0c6708c (patch) | |
tree | bfa47b1b9151b9464026c557507c1e59047be648 | |
parent | 9bc3f3cf304c300c758743f2e460beb1fee3ecac (diff) | |
download | nextcloud-server-770382aea9007c8034781b14fa3184b7f0c6708c.tar.gz nextcloud-server-770382aea9007c8034781b14fa3184b7f0c6708c.zip |
Some readability improvements
-rw-r--r-- | core/js/listview.js | 4 | ||||
-rw-r--r-- | core/js/multiselect.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/core/js/listview.js b/core/js/listview.js index 239792d6346..71466c90207 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='<a href="#" title="'+element.title+'" class="hoverElement"/>'; - element=$(html); + element = $(html); element.append($('<img src="'+element.icon+'"/>')); 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 03408033db5..2174b74622d 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 ) { |