Subversion Repositories SmartDukaan

Rev

Rev 33756 | Rev 33759 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 33756 Rev 33758
Line 772... Line 772...
772
                return $.ajax(context + "/item?anyColor=" + anyColor, {
772
                return $.ajax(context + "/item?anyColor=" + anyColor, {
773
                    global: false,
773
                    global: false,
774
                    data: {
774
                    data: {
775
                        query: q
775
                        query: q
776
                    },
776
                    },
-
 
777
                    headers: {
-
 
778
                        'IdempotencyKey': IdempotencyKey
-
 
779
                    },
777
                    success: function (data) {
780
                    success: function (data) {
-
 
781
                        IdempotencyKey = uuidv4();
778
                        queryData = JSON.parse(data);
782
                        queryData = JSON.parse(data);
779
                        process(queryData);
783
                        process(queryData);
780
                    },
784
                    },
781
                });
785
                });
782
            }
786
            }
Line 799... Line 803...
799
                return $.ajax(context + "/vendorItem?vendorId=" + vendorId, {
803
                return $.ajax(context + "/vendorItem?vendorId=" + vendorId, {
800
                    global: false,
804
                    global: false,
801
                    data: {
805
                    data: {
802
                        query: q
806
                        query: q
803
                    },
807
                    },
-
 
808
                    headers: {
-
 
809
                        'IdempotencyKey': IdempotencyKey
-
 
810
                    },
804
                    success: function (data) {
811
                    success: function (data) {
-
 
812
                        IdempotencyKey = uuidv4();
805
                        queryData = JSON.parse(data);
813
                        queryData = JSON.parse(data);
806
                        process(queryData);
814
                        process(queryData);
807
                    },
815
                    },
808
                });
816
                });
809
            }
817
            }
Line 825... Line 833...
825
                    return $.ajax(context + "/imei?fofoId=" + fofoId, {
833
                    return $.ajax(context + "/imei?fofoId=" + fofoId, {
826
                        global: false,
834
                        global: false,
827
                        data: {
835
                        data: {
828
                            query: q
836
                            query: q
829
                        },
837
                        },
-
 
838
                        headers: {
-
 
839
                            'IdempotencyKey': IdempotencyKey
-
 
840
                        },
830
                        success: function (data) {
841
                        success: function (data) {
-
 
842
                            IdempotencyKey = uuidv4();
831
                            queryData = JSON.parse(data);
843
                            queryData = JSON.parse(data);
832
                            process(queryData);
844
                            process(queryData);
833
                        },
845
                        },
834
                    });
846
                    });
835
                }
847
                }
Line 853... Line 865...
853
                return $.ajax(context + "/allimei", {
865
                return $.ajax(context + "/allimei", {
854
                    global: false,
866
                    global: false,
855
                    data: {
867
                    data: {
856
                        query: q
868
                        query: q
857
                    },
869
                    },
-
 
870
                    headers: {
-
 
871
                        'IdempotencyKey': IdempotencyKey
-
 
872
                    },
858
                    success: function (data) {
873
                    success: function (data) {
-
 
874
                        IdempotencyKey = uuidv4();
859
                        queryData = JSON.parse(data);
875
                        queryData = JSON.parse(data);
860
                        process(queryData);
876
                        process(queryData);
861
                    },
877
                    },
862
                });
878
                });
863
            }
879
            }
Line 880... Line 896...
880
                return $.ajax(context + "/entity", {
896
                return $.ajax(context + "/entity", {
881
                    global: false,
897
                    global: false,
882
                    data: {
898
                    data: {
883
                        query: q
899
                        query: q
884
                    },
900
                    },
-
 
901
                    headers: {
-
 
902
                        'IdempotencyKey': IdempotencyKey
-
 
903
                    },
885
                    success: function (data) {
904
                    success: function (data) {
-
 
905
                        IdempotencyKey = uuidv4();
886
                        queryData = JSON.parse(data);
906
                        queryData = JSON.parse(data);
887
                        process(queryData);
907
                        process(queryData);
888
                    },
908
                    },
889
                });
909
                });
890
            }
910
            }
Line 906... Line 926...
906
                return $.ajax(context + "/partners", {
926
                return $.ajax(context + "/partners", {
907
                    global: false,
927
                    global: false,
908
                    data: {
928
                    data: {
909
                        query: q
929
                        query: q
910
                    },
930
                    },
-
 
931
                    headers: {
-
 
932
                        'IdempotencyKey': IdempotencyKey
-
 
933
                    },
911
                    success: function (data) {
934
                    success: function (data) {
-
 
935
                        IdempotencyKey = uuidv4();
912
                        queryData = JSON.parse(data);
936
                        queryData = JSON.parse(data);
913
                        process(queryData);
937
                        process(queryData);
914
                    },
938
                    },
915
                });
939
                });
916
            }
940
            }
Line 932... Line 956...
932
                return $.ajax(context + "/vendors", {
956
                return $.ajax(context + "/vendors", {
933
                    global: false,
957
                    global: false,
934
                    data: {
958
                    data: {
935
                        query: q
959
                        query: q
936
                    },
960
                    },
-
 
961
                    headers: {
-
 
962
                        'IdempotencyKey': IdempotencyKey
-
 
963
                    },
937
                    success: function (data) {
964
                    success: function (data) {
-
 
965
                        IdempotencyKey = uuidv4();
938
                        queryData = JSON.parse(data);
966
                        queryData = JSON.parse(data);
939
                        process(queryData);
967
                        process(queryData);
940
                    },
968
                    },
941
                });
969
                });
942
            }
970
            }