]> scripts.mit.edu Git - autoinstalls/wordpress.git/blob - wp-includes/js/dbx-key.js
Wordpress 2.0.2-scripts
[autoinstalls/wordpress.git] / wp-includes / js / dbx-key.js
1
2 //initialisation function
3 addLoadEvent( function()
4 {
5         //create new docking boxes group
6         var meta = new dbxGroup(
7                 'grabit',               // container ID [/-_a-zA-Z0-9/]
8                 'vertical',     // orientation ['vertical'|'horizontal']
9                 '10',                   // drag threshold ['n' pixels]
10                 'no',                   // restrict drag movement to container axis ['yes'|'no']
11                 '10',                   // animate re-ordering [frames per transition, or '0' for no effect]
12                 'yes',                  // include open/close toggle buttons ['yes'|'no']
13                 'closed',               // default state ['open'|'closed']
14                 'open',                 // word for "open", as in "open this box"
15                 'close',                // word for "close", as in "close this box"
16                 'click-down and drag to move this box', // sentence for "move this box" by mouse
17                 'click to %toggle% this box', // pattern-match sentence for "(open|close) this box" by mouse
18                 'use the arrow keys to move this box', // sentence for "move this box" by keyboard
19                 ', or press the enter key to %toggle% it',  // pattern-match sentence-fragment for "(open|close) this box" by keyboard
20                 '%mytitle%  [%dbxtitle%]' // pattern-match syntax for title-attribute conflicts
21                 );
22
23         var advanced = new dbxGroup(
24                 'advancedstuff',                // container ID [/-_a-zA-Z0-9/]
25                 'vertical',             // orientation ['vertical'|'horizontal']
26                 '10',                   // drag threshold ['n' pixels]
27                 'yes',                  // restrict drag movement to container axis ['yes'|'no']
28                 '10',                   // animate re-ordering [frames per transition, or '0' for no effect]
29                 'yes',                  // include open/close toggle buttons ['yes'|'no']
30                 'closed',               // default state ['open'|'closed']
31                 'open',                 // word for "open", as in "open this box"
32                 'close',                // word for "close", as in "close this box"
33                 'click-down and drag to move this box', // sentence for "move this box" by mouse
34                 'click to %toggle% this box', // pattern-match sentence for "(open|close) this box" by mouse
35                 'use the arrow keys to move this box', // sentence for "move this box" by keyboard
36                 ', or press the enter key to %toggle% it',  // pattern-match sentence-fragment for "(open|close) this box" by keyboard
37                 '%mytitle%  [%dbxtitle%]' // pattern-match syntax for title-attribute conflicts
38                 );
39 });