Merge pull request #4402 from expsa/revert-4393-eltayar

Revert "🔧 Add Minimal Placeholder Fix for Gregorian Date Field"
This commit is contained in:
Mohamed Eltayar 2025-08-29 01:57:37 +03:00 committed by GitHub
commit d8c89c8fc9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 12 deletions

View File

@ -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);
}, },
/** /**