~ubuntu-branches/ubuntu/raring/webcalendar/raring

« back to all changes in this revision

Viewing changes to includes/menu/themes/office2003/theme.js

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere
  • Date: 2009-06-09 06:26:24 UTC
  • mfrom: (18.2.3 karmic)
  • Revision ID: james.westby@ubuntu.com-20090609062624-9n9xea2ftpipmg38
Tags: 1.2.0+dfsg-4
* debian/patches/06_send-reminder-paths.diff: Adjust patch to help
  translate.php to find the translation files under /etc/webcalendar.
  Thanks to Dale and Cheryl Schroeder for the help on debugging this
  (really, closes: #531312).
* debian/patches/16_no-blink-public-access-title.diff: New patch for
  avoiding the blinking title when changing the Public Access title in
  English-US.txt

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
// directory of where all the images are
 
3
var cmThemeBase = 'includes/menu/themes/office2003/';
 
4
 
 
5
// the follow block allows user to re-define theme base directory
 
6
// before it is loaded.
 
7
try
 
8
{
 
9
  if (myThemeBase)
 
10
  {
 
11
    cmThemeBase = myThemeBase;
 
12
  }
 
13
}
 
14
catch (e)
 
15
{
 
16
}
 
17
 
 
18
var cmTheme =
 
19
{
 
20
  // main menu display attributes
 
21
  //
 
22
  // Note. When the menu bar is horizontal,
 
23
  // mainFolderLeft and mainFolderRight are
 
24
  // put in <span></span>. When the menu
 
25
  // bar is vertical, they would be put in
 
26
  // a separate TD cell.
 
27
 
 
28
  // HTML code to the left of the folder item
 
29
  mainFolderLeft: '&nbsp;',
 
30
  // HTML code to the right of the folder item
 
31
  mainFolderRight: '&nbsp;',
 
32
  // HTML code to the left of the regular item
 
33
  mainItemLeft: '&nbsp;',
 
34
  // HTML code to the right of the regular item
 
35
  mainItemRight: '&nbsp;',
 
36
 
 
37
  // sub menu display attributes
 
38
 
 
39
  // 0, HTML code to the left of the folder item
 
40
//  folderLeft: '<img alt="" src="' + cmThemeBase + 'spacer.gif">',
 
41
  folderLeft: '<img alt="" src="includes/menu/icons/spacer.gif">',
 
42
  // 1, HTML code to the right of the folder item
 
43
//  folderRight: '<img alt="" src="' + cmThemeBase + 'arrow.gif">',
 
44
  folderRight: '<img alt="" src="includes/menu/icons/arrow.gif">',
 
45
  // 2, HTML code to the left of the regular item
 
46
//  itemLeft: '<img alt="" src="' + cmThemeBase + 'spacer.gif">',
 
47
  itemLeft: '<img alt="" src="includes/menu/icons/spacer.gif">',
 
48
  // 3, HTML code to the right of the regular item
 
49
//  itemRight: '<img alt="" src="' + cmThemeBase + 'blank.gif">',
 
50
  itemRight: '<img alt="" src="includes/menu/icons/blank.gif">',
 
51
  // 4, cell spacing for main menu
 
52
  mainSpacing: 0,
 
53
  // 5, cell spacing for sub menus
 
54
  subSpacing: 0,
 
55
  // 6, auto dispear time for submenus in milli-seconds
 
56
  delay: 500
 
57
};
 
58
 
 
59
// for horizontal menu split
 
60
var cmThemeHSplit = [_cmNoClick, '<td class="ThemeMenuItemLeft"></td><td colspan="2"><div class="ThemeMenuSplit"></div></td>'];
 
61
var cmThemeMainHSplit = [_cmNoClick, '<td class="ThemeMainItemLeft"></td><td colspan="2"><div class="ThemeMenuSplit"></div></td>'];
 
62
var cmThemeMainVSplit = [_cmNoClick, '|'];