]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add some more spaces for operators
authorkondou <kondou@ts.unde.re>
Fri, 7 Mar 2014 08:46:08 +0000 (09:46 +0100)
committerkondou <kondou@ts.unde.re>
Mon, 2 Jun 2014 19:09:41 +0000 (21:09 +0200)
core/js/multiselect.js

index 2174b74622db6b21c910ca36a8eeb76d57733bf4..dac39b6acf5d1812493e7a0dbd1d1983e601d1f3 100644 (file)
                                        button.children('span').first().text(settings.labels.length > 0
                                                ? settings.labels.join(', ')
                                                : settings.title);
-                                       var newOuterWidth=Math.max(
-                                               (button.outerWidth()-2),
+                                       var newOuterWidth = Math.max(
+                                               (button.outerWidth() - 2),
                                                settings.minOuterWidth
-                                       )+'px';
+                                       ) + 'px';
                                        var newWidth=Math.max(button.width(),settings.minWidth);
                                        var pos=button.position();
                                        button.css('width',oldWidth);
                        var pos=button.position();
                        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
+                               $(document).height() / 2 > button.offset().top
                        ) {
                                list.css({
                                        top:pos.top+button.outerHeight()-5,