Subversion Repositories SmartDukaan

Rev

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

Rev 28443 Rev 28455
Line 1053... Line 1053...
1053
                }
1053
                }
1054
                investmentCloseFlag = !investmentCloseFlag;
1054
                investmentCloseFlag = !investmentCloseFlag;
1055
            });
1055
            });
1056
        });
1056
        });
1057
 
1057
 
-
 
1058
      function sleep(delay) {
-
 
1059
    var start = new Date().getTime();
-
 
1060
    while (new Date().getTime() < start + delay);
1058
      
1061
}
1059
        $(document).on("click", ".priceDrop_chart",
1062
        $(document).on("click", ".priceDrop_chart",
1060
                function () {
1063
                function () {
1061
                $(".pd").css("color", "blue"); 
1064
                $(".pd").css("color", "blue"); 
1062
                $(".pd").css("background-color", "white");
1065
                $(".pd").css("background-color", "white");
1063
              $(".ba").css("color", "white"); 
1066
              $(".ba").css("color", "white"); 
1064
              $(".ba").css("background-color", "#C0C0C0");    
1067
              $(".ba").css("background-color", "#C0C0C0");    
1065
                 $(".pa").css("color", "white"); 
1068
                 $(".pa").css("color", "white"); 
1066
              $(".pa").css("background-color", "#C0C0C0");    
1069
              $(".pa").css("background-color", "#C0C0C0");    
1067
               $(".la").css("color", "white"); 
1070
               $(".la").css("color", "white"); 
1068
                $(".la").css("background-color", "#C0C0C0");
1071
               $(".la").css("background-color", "#C0C0C0");
-
 
1072
                 sleep(500);
1069
                 doGetAjaxRequestHandler(context + "/getMonthlyPriceDrop", function (response) {
1073
                 doGetAjaxRequestHandler(context + "/getMonthlyPriceDrop", function (response) {
-
 
1074
             
1070
                        $('.ChartContainer').html(response);
1075
                        $('.ChartContainer').html(response);
1071
                    });    
1076
                    });    
1072
       });
1077
       });
1073
       
1078
       
1074
       
1079