Is is possible to hide the datepicker button in inline editing moe while keeping it in form edit mode?
1 Answers
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