Dear rajesh, thanks for you work. It looks very nice.
I won’t use it for now because after some tests I had some issues :
- couldn’t get the current date to be highlighted
- if I click on the date button with today’s date (eg 05-06), then picking another date (05-07), then closing (without setting) and clicking back on the date button, the datepicker opens and preselects 05-07 instead of 05-06. It should be preset to the first date since I didn’t save my previous changes.
Also I’m delivering an update for my app really soon so I will look for updated to your script for the next update.
I started to edit the code for localizing Month names and week names, so I’ll leave it for some one to use :
//var n = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
var n = [$filter('date')("1970-01-01", "MMMM"),$filter('date')("1970-02-01", "MMMM"),$filter('date')("1970-03-01", "MMMM"),$filter('date')("1970-04-01", "MMMM"),$filter('date')("1970-05-01", "MMMM"),$filter('date')("1970-06-01", "MMMM"),$filter('date')("1970-07-01", "MMMM"),$filter('date')("1970-08-01", "MMMM"),$filter('date')("1970-09-01", "MMMM"),$filter('date')("1970-10-01", "MMMM"),$filter('date')("1970-11-01", "MMMM"),$filter('date')("1970-12-01", "MMMM")]
var o = angular.copy(t.ipDate);
//t.weekNames = ["S", "M", "T", "W", "T", "F", "S"], t.today = {}, t.today.dateObj = new Date, t.today.date = (new Date).getDate(), t.today.month = (new Date).getMonth(), t.
t.weekNames = [$filter('date')("2015-05-03", "EEE").substr(0,1).toUpperCase(), $filter('date')("2015-05-04", "EEE").substr(0,1).toUpperCase(), $filter('date')("2015-05-05", "EEE").substr(0,1).toUpperCase(),$filter('date')("2015-05-06", "EEE").substr(0,1).toUpperCase(),$filter('date')("2015-05-07", "EEE").substr(0,1).toUpperCase(),$filter('date')("2015-05-08", "EEE").substr(0,1).toUpperCase(),$filter('date')("2015-05-09", "EEE").substr(0,1).toUpperCase()];
Cheers !