Browse Source

[fix] [minor] z-index issue in date and datetime picker

version-14
Anand Doshi 12 years ago
parent
commit
531a35409c
1 changed files with 9 additions and 2 deletions
  1. +9
    -2
      public/js/wn/form/control.js

+ 9
- 2
public/js/wn/form/control.js View File

@@ -369,7 +369,10 @@ wn.ui.form.ControlDate = wn.ui.form.ControlData.extend({
},
set_datepicker: function() {
this.datepicker_options.dateFormat =
(wn.boot.sysdefaults.date_format || 'yy-mm-dd').replace('yyyy','yy')
(wn.boot.sysdefaults.date_format || 'yy-mm-dd').replace('yyyy','yy');
if(this.not_in_form && this.dialog_wrapper) {
this.$input.css("z-index", cint($(this.dialog_wrapper).zIndex()));
}
this.$input.datepicker(this.datepicker_options);
},
parse: function(value) {
@@ -408,8 +411,12 @@ wn.ui.form.ControlTime = wn.ui.form.ControlData.extend({
wn.ui.form.ControlDatetime = wn.ui.form.ControlDate.extend({
set_datepicker: function() {
this.datepicker_options.dateFormat =
(wn.boot.sysdefaults.date_format || 'yy-mm-dd').replace('yyyy','yy')
(wn.boot.sysdefaults.date_format || 'yy-mm-dd').replace('yyyy','yy');
this.datepicker_options.timeFormat = "hh:mm:ss";
if(this.not_in_form && this.dialog_wrapper) {
this.$input.css("z-index", cint($(this.dialog_wrapper).zIndex()));
}

this.$input.datetimepicker(this.datepicker_options);
},


Loading…
Cancel
Save