Skip to content
Extraits de code Groupes Projets
Valider e9508db6 rédigé par BeezyT's avatar BeezyT
Parcourir les fichiers

refs #3332

 * reset open group when closing the popover or changing the url
 * fixed some lint

git-svn-id: http://dev.piwik.org/svn/trunk@6855 59fd770c-687e-43c8-a1e3-f5a4ff64c105
parent cb6404a5
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -65,7 +65,6 @@ function Piwik_Transitions(link, rowAction) {
this.model = new Piwik_Transitions_Model(this.ajax);
this.leftGroups = ['previousPages', 'searchEngines', 'websites', 'campaigns'];
this.leftOpenGroup = 'previousPages';
}
Piwik_Transitions.prototype.reset = function(link) {
......@@ -73,6 +72,7 @@ Piwik_Transitions.prototype.reset = function(link) {
this.popover = null;
this.canvas = null;
this.centerBox = null;
this.leftOpenGroup = 'previousPages';
};
/** Open the popover */
......@@ -245,7 +245,7 @@ Piwik_Transitions.prototype.renderOpenGroup = function(groupName, side) {
titleClass = 'BoxTextLeft';
} else {
titleX = this.canvas.rightBoxBeginX - 1;
titleClass = 'BoxTextRight'
titleClass = 'BoxTextRight';
}
var groupTitle = self.model.getGroupTitle(groupName);
this.canvas.renderText(groupTitle, titleX , 11, [titleClass, 'TitleOfOpenGroup']);
......@@ -259,7 +259,7 @@ Piwik_Transitions.prototype.renderOpenGroup = function(groupName, side) {
var onClick = false;
if (!isOthers && (groupName == 'previousPages' || groupName == 'followingPages')) {
onClick = (function(url) {
return function() { self.reloadPopover(url) };
return function() { self.reloadPopover(url); };
})(label);
}
this.canvas.renderBox({
......
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