Merge pull request #4402 from expsa/revert-4393-eltayar
Revert "🔧 Add Minimal Placeholder Fix for Gregorian Date Field"
This commit is contained in:
commit
d8c89c8fc9
|
|
@ -37,11 +37,6 @@ odoo.define('web_hijri_datepicker.datepicker', function (require) {
|
||||||
this.$input = this.$('input.o_datepicker_input');
|
this.$input = this.$('input.o_datepicker_input');
|
||||||
this.$input_hijri = this.$('input.o_hijri');
|
this.$input_hijri = this.$('input.o_hijri');
|
||||||
|
|
||||||
// ✅ إضافة بسيطة للـ placeholder للحقل الميلادي
|
|
||||||
if (this.$input && this.$input.length && !this.$input.attr('placeholder')) {
|
|
||||||
this.$input.attr('placeholder', 'التاريخ الميلادي');
|
|
||||||
}
|
|
||||||
|
|
||||||
// Enhanced click handler with better UX
|
// Enhanced click handler with better UX
|
||||||
this.$input_hijri.click(function (e) {
|
this.$input_hijri.click(function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
@ -75,13 +70,6 @@ odoo.define('web_hijri_datepicker.datepicker', function (require) {
|
||||||
this.$el.datetimepicker(this.options);
|
this.$el.datetimepicker(this.options);
|
||||||
this.__libInput--;
|
this.__libInput--;
|
||||||
this._setReadonly(false);
|
this._setReadonly(false);
|
||||||
|
|
||||||
// ✅ تأكد مرة أخيرة من الـ placeholder بعد تحميل datetimepicker
|
|
||||||
setTimeout(function() {
|
|
||||||
if (self.$input && self.$input.length && !self.$input.attr('placeholder')) {
|
|
||||||
self.$input.attr('placeholder', 'التاريخ الميلادي');
|
|
||||||
}
|
|
||||||
}, 50);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue