]> source.dussan.org Git - jquery-ui.git/commitdiff
sortable portlets demo: Swapped plus and minus icons for more consistency
authorRichard Worth <rdworth@gmail.com>
Sun, 4 Oct 2009 10:29:03 +0000 (10:29 +0000)
committerRichard Worth <rdworth@gmail.com>
Sun, 4 Oct 2009 10:29:03 +0000 (10:29 +0000)
demos/sortable/portlets.html

index 4494fa6739239c40df4a68c466a06fd2d3064af9..028d68f0f47a57f3f3c62e3359d23daa272cc3ba 100644 (file)
                $(".portlet").addClass("ui-widget ui-widget-content ui-helper-clearfix ui-corner-all")
                        .find(".portlet-header")
                                .addClass("ui-widget-header ui-corner-all")
-                               .prepend('<span class="ui-icon ui-icon-plusthick"></span>')
+                               .prepend('<span class="ui-icon ui-icon-minusthick"></span>')
                                .end()
                        .find(".portlet-content");
 
                $(".portlet-header .ui-icon").click(function() {
-                       $(this).toggleClass("ui-icon-minusthick");
+                       $(this).toggleClass("ui-icon-minusthick").toggleClass("ui-icon-plusthick");
                        $(this).parents(".portlet:first").find(".portlet-content").toggle();
                });