angularjs - Angular ui bootstrap current date (today) highlight without selecting -


i using angular.ui bootstrap datepicker (http://angular-ui.github.io/bootstrap/#/datepicker)

now challenging 1 problem: client wants see current date highlighted, if not selected. in example (http://angular-ui.github.io/ui-date/).

tried google problem, no solution found angular.ui bootstrap datepicker.

there no way, switch ui-date. ideas?

thank you!

replace in datepicker control this

var days = getdates(firstdate, numdates), labels = new array(7); (var = 0; < numdates; i++) {   var dt = new date(days[i]);   days[i] = makedate(dt, format.day, (selected && selected.getdate() === dt.getdate() && selected.getmonth() === dt.getmonth() && selected.getfullyear() === dt.getfullyear()), dt.getmonth() !== month); } 

with

var today = new date(); var days = getdates(firstdate, numdates), labels = new array(7); (var = 0; < numdates; i++) {   var dt = new date(days[i]);   var highlight = (selected && selected.getdate() === dt.getdate() && selected.getmonth() === dt.getmonth() && selected.getfullyear() === dt.getfullyear());     if(!highlight) {         highlight = (today.getdate() === dt.getdate() && today.getmonth() === dt.getmonth() && today.getfullyear() === dt.getfullyear());     }   days[i] = makedate(dt, format.day, highlight, dt.getmonth() !== month); } 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -