Posts

Showing posts from October, 2013
this is for checkbox checkall in a table $(function () {    $('.checkall').click(function () {     $(this).closest('table').find(':checkbox').prop('checked', this.checked); }); }); <input type="checkbox" class="checkall">
this is for group facebox images $(document).ready(function() { $("a[rel=example_group]").fancybox({ 'transitionIn' : 'none', 'transitionOut' : 'none', 'titlePosition' : 'over', 'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {    return '<span id="fancybox-title-over">Image ' +  (currentIndex + 1) + ' / ' + currentArray.length + ' ' + title + '</span>'; } }); });
this code for edit the inline <script> $(function() {  $(".clickcal4").editable("ajax/filename.php", {  indicator : "<img src='../images/indicator.gif'>",  tooltip   : "Click to edit...",  style  : "inherit",   }); }); </script> function for just show the year and month  $(function() {         $('#datepicker1').datepicker( {             changeMonth: true,             changeYear: true,             showButtonPanel: true,             dateFormat: 'yy-mm',             onClose: function(dateText, inst) {                  var month = $("#ui-datepicker-div .ui-datepicker-month :selected").val();                 v...
expanad and collsap function showhide(val){ $('#commentscontainer'+val).slideUp(); $('#hideshow'+val).html('<a onclick="showhide22('+val+')">Expand</a>'); } function showhide22(val){ $('#commentscontainer'+val).slideDown(); $('#hideshow'+val).html('<a onclick="showhide('+val+')">Collapse</a>'); }
This command for Dadicated server edit php.ini file nano /usr/local/lib/php.ini Put these lines for increase input verb max_input_vars = 300000  suhosin.post.max_vars = 300000 suhosin.request.max_vars = 300000