Cleaned up task.jade file:

- moved ugly html newlines into the stylesheet
- renamed temporary var for datePicker’s ngmodel from _dateString to _tempDateForPicker
- renamed open -> openDatePicker, and have the function track datePicker’s open/closed state on a per task instead of global basis
This commit is contained in:
Allen Pan
2015-05-14 00:22:27 -07:00
parent 1ecf608408
commit a763a3a3da
5 changed files with 65 additions and 60 deletions

View File

@@ -45,7 +45,7 @@ habitrpg
task._editing = !task._editing;
task._tags = User.user.preferences.tagsCollapsed;
task._advanced = User.user.preferences.advancedCollapsed;
task._dateString = moment(task.startDate).format('YYYY-MM-DD');
task._tempDateForPicker = moment(task.startDate).format('YYYY-MM-DD');
if($rootScope.charts[task.id]) $rootScope.charts[task.id] = false;
};
}],