Skip to content
Extraits de code Groupes Projets
Valider cb2f3224 rédigé par Gregor Aisch's avatar Gregor Aisch
Parcourir les fichiers

more logging

parent 7d52571e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
this.uniqueId = this.options.uniqueId; this.uniqueId = this.options.uniqueId;
} }
piwikHelper.log('created widget '+this.uniqueId); piwikHelper.log('widget._create() '+this.uniqueId);
if(this.options.widgetParameters) { if(this.options.widgetParameters) {
this.widgetParameters = this.options.widgetParameters; this.widgetParameters = this.options.widgetParameters;
...@@ -134,12 +134,16 @@ ...@@ -134,12 +134,16 @@
*/ */
reload: function(hideLoading) { reload: function(hideLoading) {
piwikHelper.log('widget.reload() '+this.uniqueId);
var self = this, currentWidget = this.element; var self = this, currentWidget = this.element;
function onWidgetLoadedReplaceElementWithContent(loadedContent) function onWidgetLoadedReplaceElementWithContent(loadedContent)
{ {
$('.widgetContent', currentWidget).html(loadedContent); $('.widgetContent', currentWidget).html(loadedContent);
$('.widgetContent', currentWidget).removeClass('loading'); $('.widgetContent', currentWidget).removeClass('loading');
$('.widgetContent', currentWidget).trigger('widget:loaded', [self]); $('.widgetContent', currentWidget).trigger('widget:loaded', [self]);
piwikHelper.log('onWidgetLoadedReplaceElementWithContent() '+this.uniqueId);
} }
// Reading segment from hash tag (standard case) or from the URL (when embedding dashboard) // Reading segment from hash tag (standard case) or from the URL (when embedding dashboard)
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter