Date picker button/icon

QuestionsDate picker button/icon
Harald Veit asked 7 years ago

Is is possible to hide the datepicker button in inline editing moe while keeping it in form edit mode?

1 Answers
Abu Ghufran answered 7 years ago

For that you need to edit lib/inc/jqgrid_dist.php and change:

jQuery(el).after(' <button>Calendar</button>').next().button({icons:{primary: 'ui-icon-calendar'}, text:false}).css({'font-size':'69%', 'margin-left':'2px'}).click(function(e){jQuery(el).datepicker('show');return false;});

to

jQuery(el).not('.editable').after(' <button>Calendar</button>').next().button({icons:{primary: 'ui-icon-calendar'}, text:false}).css({'font-size':'69%', 'margin-left':'2px'}).click(function(e){jQuery(el).datepicker('show');return false;});

I added .not('.editable').

Your Answer

15 + 9 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?