Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
This commit is contained in:
parent
93e3a48004
commit
b38dea0597
25901 changed files with 9982925 additions and 369 deletions
50
gaia/apps/calendar/test/marionette/lib/views/month.js
Executable file
50
gaia/apps/calendar/test/marionette/lib/views/month.js
Executable file
|
|
@ -0,0 +1,50 @@
|
|||
'use strict';
|
||||
|
||||
var View = require('./view');
|
||||
|
||||
function Month() {
|
||||
View.apply(this, arguments);
|
||||
}
|
||||
module.exports = Month;
|
||||
|
||||
Month.prototype = {
|
||||
__proto__: View.prototype,
|
||||
|
||||
selector: '#month-view',
|
||||
|
||||
get activeMonth() {
|
||||
return this.findElement('.month.active');
|
||||
},
|
||||
|
||||
get currentDay() {
|
||||
return this.activeMonth.findElement('.present > .day');
|
||||
},
|
||||
|
||||
get busyDots() {
|
||||
return this.activeMonth.findElements('.icon-calendar-dot');
|
||||
},
|
||||
|
||||
get days() {
|
||||
return this.activeMonth.findElements('.day');
|
||||
},
|
||||
|
||||
get weekdayHeaders() {
|
||||
return this
|
||||
.findElements('.month.active #month-days li')
|
||||
.map(function(li) {
|
||||
return li.text();
|
||||
});
|
||||
},
|
||||
|
||||
get daySquares() {
|
||||
return this.findElements('.month.active > ol li');
|
||||
},
|
||||
|
||||
get todaySquare() {
|
||||
return this.activeMonth.findElement('.present');
|
||||
},
|
||||
|
||||
squareDots: function(square) {
|
||||
return square.findElements('.icon-calendar-dot');
|
||||
}
|
||||
};
|
||||
Loading…
Reference in a new issue