|
@@ -290,6 +290,7 @@ class Dashboard {
|
|
|
//Render d'un widget en fonction de ses paramètres
|
|
|
//Gère le refresh du widget si l'élément est déjà existant
|
|
|
renderContent(id) {
|
|
|
+
|
|
|
var widget = this.widgets[id];
|
|
|
var widgetElement = widget.element!=null ? widget.element : $(Mustache.render(this.widgetTemplate, widget));
|
|
|
|
|
@@ -336,7 +337,6 @@ class Dashboard {
|
|
|
renderPositions(){
|
|
|
var placeholderWidth = this.placeHolders.initialWidth;
|
|
|
var placeholderHeight = this.placeHolders.initialHeight;
|
|
|
-
|
|
|
for(var k in this.widgets){
|
|
|
var widget = this.widgets[k];
|
|
|
var cell = $('[data-row="'+widget.row+'"][data-column="'+widget.column+'"]').position();
|