Posts

Showing posts from May, 2017

Bootstrap Modal Date-range Picker Single Picker Month & Years Drop Down & Text area height Problem On Firefox

 //Textarea Design Problem on Firefox Fix     var FF = !(window.mozInnerScreenX == null);     if (FF) {         $('textarea[rows]').each(function (i, el) {             if (!$(el).data('ffRowsFixed')) {                 var rows = parseInt($(el).attr('rows'));                 if (rows > 1) {                     $(el).attr('rows', (rows - 1));                 }                 $(el).data('ffRowsFixed', true);             }         });         //Modal in date Picker Drop Down issue on Firefox Fix         $('.modal').on('show.bs.modal', function () {             $.fn.modal.Constructor.prototype.enforceFocus = function () { };         });     }