1. JavaScript / Говнокод #13955

    +153

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    function Recalc(index) {
                var url = window.location.pathname + "?";
                var data = "DepartureDate=" + $("#AvailabilityList_" + index + "__DepartureDate").val()
    				 + "&DepartureTime=" + $("#AvailabilityList_" + index + "__DepartureTime").val()
                + "&ArrivalDate=" + $("#AvailabilityList_" + index + "__ArrivalDate").val()
                + "&ArrivalTime=" + $("#AvailabilityList_" + index + "__ArrivalTime").val()
                + "&FromCode=" + $("#AvailabilityList_" + index + "__FromCode").val()
                + "&ToCode=" + $("#AvailabilityList_" + index + "__ToCode").val()
                + "&ShipCode=" + $("#AvailabilityList_" + index + "__ShipCode").val()
                + "&ProviderCode=" + $("#AvailabilityList_" + index + "__ProviderCode").val()
                + "&Duration=" + $("#AvailabilityList_" + index + "__Duration").val()
                + "&AdultCount=" + $("#AvailabilityList_" + index + "__AdultCount").val()
                + "&ChildCount=" + $("#AvailabilityList_" + index + "__ChildCount").val()
                + "&FerryID=" + $("#AvailabilityList_" + index + "__FerryID").val()
                + "&Auto=" + $("#AvailabilityList_" + index + "__Auto").val()
                + "&FareCode=" + $("#AvailabilityList_" + index + "__FareCode").val()
                + "&Years[0]=" + $("#AvailabilityList_" + index + "__Years_0_").val()
                + "&Years[1]=" + $("#AvailabilityList_" + index + "__Years_1_").val()
                + "&Years[2]=" + $("#AvailabilityList_" + index + "__Years_2_").val()
                + "&Years[3]=" + $("#AvailabilityList_" + index + "__Years_3_").val()
                + "&Years[4]=" + $("#AvailabilityList_" + index + "__Years_4_").val()
                + "&Years[5]=" + $("#AvailabilityList_" + index + "__Years_5_").val()
                + "&Years[6]=" + $("#AvailabilityList_" + index + "__Years_6_").val()
                + "&Years[7]=" + $("#AvailabilityList_" + index + "__Years_7_").val()
                + "&Years[8]=" + $("#AvailabilityList_" + index + "__Years_8_").val()
                + "&Index=" + index;
                return data;
            }

    Back-end asp.net mvc, кому интересно

    Запостил: sladkijBubaleh, 16 Октября 2013

    Комментарии (2) RSS

    Добавить комментарий