]> source.dussan.org Git - nextcloud-server.git/commitdiff
Some readability improvements
authorkondou <kondou@ts.unde.re>
Mon, 3 Mar 2014 16:11:23 +0000 (17:11 +0100)
committerkondou <kondou@ts.unde.re>
Mon, 2 Jun 2014 19:09:41 +0000 (21:09 +0200)
core/js/listview.js
core/js/multiselect.js

index 239792d634643b25ab1a6ebbec5eb7ee0a753879..71466c9020746e46a57898f477a2937e692a30a3 100644 (file)
@@ -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});
        },
index 03408033db539c1a6650bf4c834242c967a2e1e8..2174b74622db6b21c910ca36a8eeb76d57733bf4 100644 (file)
                        }
                        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
                        ) {