Subversion Repositories SmartDukaan

Rev

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

Rev 37131 Rev 37498
Line 924... Line 924...
924
                                                            });
924
                                                            });
925
                                        });
925
                                        });
926
 
926
 
927
 
927
 
928
                        var myPieChart = null;
928
                        var myPieChart = null;
-
 
929
                        // Fragment is re-injected with .html(), which re-runs this script; clear the
-
 
930
                        // namespace first so handlers replace rather than stack.
-
 
931
                        $(document).off('.lead');
929
                        $(document).on("keyup", ".search-lead",
932
                        $(document).on("keyup.lead", ".search-lead",
930
                                function (e) {
933
                                function (e) {
931
                                    console.log('Currently applied global search:');
934
                                    console.log('Currently applied global search:');
932
                                    if (myPieChart != null) {
935
                                    if (myPieChart != null) {
933
                                        myPieChart.destroy();
936
                                        myPieChart.destroy();
934
                                    }
937
                                    }