Revert "🔧 Add Minimal Placeholder Fix for Gregorian Date Field"

This commit is contained in:
Mohamed Eltayar 2025-08-29 01:57:19 +03:00 committed by GitHub
parent ab36a0e789
commit b5ac09afd5
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_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
this.$input_hijri.click(function (e) {
e.preventDefault();
@ -75,13 +70,6 @@ odoo.define('web_hijri_datepicker.datepicker', function (require) {
this.$el.datetimepicker(this.options);
this.__libInput--;
this._setReadonly(false);
// ✅ تأكد مرة أخيرة من الـ placeholder بعد تحميل datetimepicker
setTimeout(function() {
if (self.$input && self.$input.length && !self.$input.attr('placeholder')) {
self.$input.attr('placeholder', 'التاريخ الميلادي');
}
}, 50);
},
/**