~ubuntu-branches/ubuntu/precise/lightning-extension/precise

« back to all changes in this revision

Viewing changes to calendar/base/content/widgets/minimonth.xml

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2011-12-19 23:19:15 UTC
  • mfrom: (1.1.12)
  • Revision ID: package-import@ubuntu.com-20111219231915-gk23xyhy156a3sis
Tags: 1.1+build1-0ubuntu1
New upstream stable release (CALENDAR_1_1_BUILD1)

Show diffs side-by-side

added added

removed removed

Lines of Context:
267
267
           if (yearPopup) {
268
268
               let monthList = yearPopup.getElementsByAttribute("class", "minimonth-list");
269
269
               if (monthList && monthList.length > 0) {
270
 
                   if (event.detail == NSUIEvent.SCROLL_PAGE_UP) {
 
270
                   if (event.detail == UIEvent.SCROLL_PAGE_UP) {
271
271
                     this.moveYears('up', monthList.length);
272
 
                   } else if (event.detail == NSUIEvent.SCROLL_PAGE_DOWN) {
 
272
                   } else if (event.detail == UIEvent.SCROLL_PAGE_DOWN) {
273
273
                     this.moveYears('down', monthList.length);
274
274
                   } else if (event.detail < 0) {
275
275
                     this.moveYears('up', 1);
1167
1167
            return;
1168
1168
          }
1169
1169
          var rows = event.detail;
1170
 
          if (rows == NSUIEvent.SCROLL_PAGE_UP) {
 
1170
          if (rows == UIEvent.SCROLL_PAGE_UP) {
1171
1171
            rows = -1;
1172
 
          } else if (rows == NSUIEvent.SCROLL_PAGE_DOWN) {
 
1172
          } else if (rows == UIEvent.SCROLL_PAGE_DOWN) {
1173
1173
            rows = 1;
1174
1174
          } else {
1175
1175
            // In this case event.detail contains the default number of lines