mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-26 16:42:44 +00:00
Monotone-Parent: 31f045130060a24f1eb793184cac83918bf8cede
Monotone-Revision: 0816302ed31a5afb876acab4e1bcf2f5d953f653 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-02-08T19:38:05 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -82,7 +82,7 @@ iRANGE(2);
|
||||
|
||||
#define REPEAT(X) \
|
||||
- (NSString *) repeat##X { return repeat##X; } \
|
||||
- (void) setRepeat##X: (NSString *) theValue { NSLog(@"setRepeat %@", theValue); ASSIGN(repeat##X, theValue); } \
|
||||
- (void) setRepeat##X: (NSString *) theValue { NSLog(@"setRepeat%d %@", X, theValue); ASSIGN(repeat##X, theValue); } \
|
||||
|
||||
#define RANGE(X) \
|
||||
- (NSString *) range##X { return range##X; } \
|
||||
|
||||
@@ -60,14 +60,14 @@
|
||||
</td>
|
||||
<td>
|
||||
<div id="week"><span class="week">
|
||||
<div name="0"><p><var:string label:value="Sun"/></p></div>
|
||||
<div name="1"><p><var:string label:value="Mon"/></p></div>
|
||||
<div name="2"><p><var:string label:value="Tue"/></p></div>
|
||||
<div name="3"><p><var:string label:value="Wed"/></p></div>
|
||||
<div name="4"><p><var:string label:value="Thu"/></p></div>
|
||||
<div name="5"><p><var:string label:value="Fri"/></p></div>
|
||||
<div name="6"><p><var:string label:value="Sat"/></p></div>
|
||||
</span><span class="week"></span>
|
||||
<div name="7"><p><var:string label:value="Sun"/></p></div>
|
||||
</span><span class="week"><!-- space --></span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -93,11 +93,17 @@ function initializeFormValues() {
|
||||
else if (repeatType == 1) {
|
||||
// Repeat weekly
|
||||
$('weeklyWeeksField').value = parent$("repeat1").value;
|
||||
var weekDiv = $("week").firstChild;
|
||||
var daysArray = parent$("repeat2").value.split(",");
|
||||
daysArray.each(function(index) {
|
||||
$(weekDiv).down('div', index).addClassName("_selected");
|
||||
var weekDiv = $($("week").firstChild);
|
||||
log ("div: " + weekDiv);
|
||||
log ("days: " + parent$("repeat2").value);
|
||||
var days = "" + parent$("repeat2").value;
|
||||
if (days.length > 0) {
|
||||
var daysArray = days.split(",");
|
||||
var divs = weekDiv.childNodesWithTag("div");
|
||||
daysArray.each(function(index) {
|
||||
divs[index-1].addClassName("_selected");
|
||||
});
|
||||
}
|
||||
}
|
||||
else if (repeatType == 2) {
|
||||
// Repeat monthly
|
||||
@@ -106,10 +112,13 @@ function initializeFormValues() {
|
||||
$('monthlyRepeat').value = parent$("repeat3").value;
|
||||
$('monthlyDay').value = parent$("repeat4").value;
|
||||
var monthDiv = $("month");
|
||||
var daysArray = parent$("repeat5").value.split(",");
|
||||
daysArray.each(function(index) {
|
||||
$(monthDiv).down('DIV[name="'+index+'"]').addClassName("_selected");
|
||||
});
|
||||
var days = "" + parent$("repeat5").value;
|
||||
if (days.length > 0) {
|
||||
var daysArray = days.split(",");
|
||||
daysArray.each(function(index) {
|
||||
$(monthDiv).down('DIV[name="'+index+'"]').addClassName("_selected");
|
||||
});
|
||||
}
|
||||
}
|
||||
else if (repeatType == 3) {
|
||||
// Repeat yearly
|
||||
|
||||
Reference in New Issue
Block a user