src/js/main.js
branchpopcorn-port
changeset 834 573c7ca752e0
parent 743 69a9969daa41
child 835 a8af9da7c622
equal deleted inserted replaced
833:33a5d5882be4 834:573c7ca752e0
    41     }       
    41     }       
    42     
    42     
    43     /* widget specific requirements */
    43     /* widget specific requirements */
    44     for (var idx in config.gui.widgets) {
    44     for (var idx in config.gui.widgets) {
    45       if (config.gui.widgets[idx].type === "PolemicWidget" ||
    45       if (config.gui.widgets[idx].type === "PolemicWidget" ||
    46           config.gui.widgets[idx].type === "StackGraphWidget") {        
    46           config.gui.widgets[idx].type === "StackGraphWidget" ||
       
    47           config.gui.widgets[idx].type === "SparklineWidget") {        
    47         $L.script(libs.raphael);
    48         $L.script(libs.raphael);
    48       }
       
    49 
       
    50       if (config.gui.widgets[idx].type === "SparklineWidget") {
       
    51         $L.script(libs.jquery_sparkline);
       
    52       }
    49       }
    53     }
    50     }
    54     
    51     
    55     // same for modules
    52     // same for modules
    56     /*
    53     /*