projects date_format to be fetched from wn.boot.sysdefaults

This commit is contained in:
Anand Doshi 2012-04-19 17:58:56 +05:30
parent 94329abd02
commit 7c135ed2fc

View File

@ -74,7 +74,7 @@ GanttChart.prototype.make_date = function(label,idx) {
var w = this.make_filter(label,idx);
var i = $a(w, 'input');
var user_fmt = wn.control_panel.date_format;
var user_fmt = wn.boot.sysdefaults.date_format;
if(!this.user_fmt)this.user_fmt = 'dd-mm-yy';
$(i).datepicker({