Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter nitrous26

    (@nitrous26)

    …Too many lines of code, it got moderated out. Here’s the date code again.

    In the submit function after these lines:

    jQuery('.wp_jschat_widget_form').submit(function(){
            var t = jQuery(this);
            var obj = {};

    add this:

    var currentDate = new Date();var day = currentDate.getDate();var month = currentDate.getMonth() + 1;var year = currentDate.getFullYear();var hours = currentDate.getHours();var minutes = currentDate.getMinutes();
    if(minutes<10){	obj.wp_jschat_text = ' '+month+'/'+day+'/'+year+' '+hours+":0"+minutes+' : '+t.find('.wp_jschat_text').val(); }
    else{ obj.wp_jschat_text = ' '+month+'/'+day+'/'+year+' '+hours+":"+minutes+' : '+t.find('.wp_jschat_text').val(); }

    and delete this line:
    obj.wp_jschat_text = t.find('.wp_jschat_text').val();

Viewing 1 replies (of 1 total)