We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It seems to me that the first open refer today, and not the model in the input form.
that's how i changed your init() to acheive this
init()
init = function() { var days, endDate, firstMonday; var initDate=scope.date ? moment(scope.date) : moment(); firstMonday = initDate.clone(); firstMonday = firstMonday.date(1).startOf('isoweek'); if (firstMonday.date() === 1) { firstMonday.subtract(1, 'weeks'); } days = initDate.date(1).daysInMonth(); endDate = initDate.clone(); endDate = endDate.add(1, 'months').date(0); scope.month = $filter('date')(new Date(endDate), 'MMM'); if (endDate.day() !== 7) { endDate = endDate.add(7 - endDate.day(), 'days'); } scope.currentDate = firstMonday; scope.year=initDate.year(); return scope.weeks = getWeeks(endDate.diff(firstMonday, 'days'), firstMonday, initDate.month()); };
The text was updated successfully, but these errors were encountered:
create a pull request
Sorry, something went wrong.
No branches or pull requests
It seems to me that the first open refer today, and not the model in the input form.
that's how i changed your
init()
to acheive thisThe text was updated successfully, but these errors were encountered: