]> source.dussan.org Git - jquery-ui.git/commitdiff
add a couple more options to scale functional tests
authorAaron Eisenberger <aaronchi@gmail.com>
Thu, 26 Jun 2008 16:14:51 +0000 (16:14 +0000)
committerAaron Eisenberger <aaronchi@gmail.com>
Thu, 26 Jun 2008 16:14:51 +0000 (16:14 +0000)
demos/functional/templates/ui.effects.showhide.html

index 70e41b0cbffdb64dd917a3a22ddae89bcdf863f0..a4dde6553049ee2dbff37d5fddae22b591775d88 100644 (file)
                                        '<ul><li style="float: left; width: 144px; height: 108px;"><img class="scalefx" style="width: 144px; height: 108px;" src="templates/images/P1010058.JPG"/></li>\n' +
                                        '<li style="float: left; width: 144px; height: 108px; margin-left: 20px;"><div class="scalefx" style="width: 144px; height: 108px; background-color: #F2F2F2;">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ...</div></li></ul>\n' +
                                        '<div style="clear: both;"></div>',
-                               destroy: '$("#doPuff").unbind();',
+                               destroy: '$("#doScale").unbind();',
 
                                options: [
-                                       {       desc: 'Scale defaults', source: '$("#doScale").click(function() { $(".scalefx").toggle("scale", {}, 2000); });' }
+                                       {       desc: 'Scale defaults', source: '$("#doScale").click(function() { $(".scalefx").toggle("scale", {}, 2000); });' },
+                                       {       desc: 'Scale from/to top-left', source: '$("#doScale").click(function() { $(".scalefx").toggle("scale", {origin:["top","left"]}, 2000); });' },
+                                       {       desc: 'Scale from/to bottom-right',     source: '$("#doScale").click(function() { $(".scalefx").toggle("scale", {origin:["bottom","right"]}, 2000); });' },
                                ]
                        },