My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 2510: After submitting button second time values not refreshed
1 person starred this issue and may be notified of changes. Back to list
Status:  Invalid
Owner:  ----
Closed:  May 2015


Sign in to add a comment
 
Reported by sunnyal...@gmail.com, May 24, 2015
Hi,
I am facing one issue 
The issue is after submitting button first time custom parameters pass with ajax it working fine. When i change a parameter and resend a request after submitting button in JS variable also updated but in server side i get old values that i send first time .

    $("#btn_submit").click(function () {
            $('#calendar').fullCalendar('refetchEvents');
            $('#calendar').fullCalendar('rerenderEvents');
            $('#calendar').fullCalendar('refresh');
            var _Businessunit = $('#Businessunit').val();
            var _Department = $('#Department').val();
            var _Leavetype = $('#Leavetype').val();
            var _LeaveStatus = $('#LeaveStatus').val();
            var _formdate = $('#formdate').val();
            var _todate = $('#todate').val();
            var _id_job = $('#Jobfunction').val();
            var _emp_id = $('#txt_empid').val();
            var _id_ent = $('#Company').val();
            var _id_staff = $('#staff').val();
            var _manager_id = $('#txt_mangid').val();
            _manager_id = _manager_id.substr(0, _manager_id.indexOf('-'));
            _emp_id = _emp_id.substr(0, _emp_id.indexOf('-'));
            var _lv_cat_id = $('#lv_cat').val();
            var paramData = { "businessId": _Businessunit, "deptId": _Department, "leavetype": _Leavetype, "leavestat": _LeaveStatus, "dtFrom": _formdate, "dtTo": _todate, "id_job": _id_job, "emp_id": _emp_id, "id_ent": _id_ent, "id_staff": _id_staff, "manager_id": _manager_id, "lv_cat_id": _lv_cat_id };

                $('#calendar').fullCalendar({
                    header: {
                        left: 'prev,next today',
                        center: 'title',
                        right: 'month,agendaWeek,agendaDay'
                    },
                    defaultDate: $('#formdate').val(),
                    editable: false,
                    eventLimit: true, // allow "more" link when too many events
                    cache: false,
                    events: {
                        url: '/LMSReports/eLeave/fnLeaveReport',
                        type: 'POST',
                        //  data: paramData
                        data: {
                            businessId: _Businessunit,
                            deptId: _Department,
                            leavetype: _Leavetype,
                            leavestat: _LeaveStatus,
                            dtFrom: _formdate,
                            dtTo: _todate,
                            id_job: _id_job,
                            emp_id: _emp_id,
                            id_ent: _id_ent,
                            id_staff: _id_staff,
                            manager_id: _manager_id,
                            lv_cat_id: _lv_cat_id


                        }
                    },
                    eventRender: function (event, element) {
                        $(element).find(".fc-time").remove();

                       

                    }
                });

          

        });


May 26, 2015
Project Member #1 adamrs...@gmail.com
please don't report dumps of your own source code; please post a bug recreation with a reduced test case as follows:
http://fullcalendar.io/wiki/Reporting-Bugs/
Status: Invalid
Sign in to add a comment

Powered by Google Project Hosting