1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-25 01:20:30 +00:00

updated false states — looks more conclusive

This commit is contained in:
Tobias Beer 2015-01-06 14:40:48 +01:00
parent a1ca53fa9b
commit 0dd3ad5e38

View File

@ -305,8 +305,8 @@ ListItemWidget.prototype.execute = function() {
// Set the current list item title
this.setVariable(item.variableName,item.itemTitle);
this.setVariable(item.iterator,(item.index + 1).toString());
this.setVariable(item.iterator + "-even",item.index % 2 == 1 ? 'true' : '');
this.setVariable(item.iterator + "-last",item.index + 1 == item.count ? 'true' : '');
this.setVariable(item.iterator + "-even",item.index % 2 == 1 ? 'true' : 'false');
this.setVariable(item.iterator + "-last",item.index + 1 == item.count ? 'true' : 'false');
// Construct the child widgets
this.makeChildWidgets();