Mise à jour terminée. Pour connaître les apports de la version 13.8.4 par rapport à notre ancienne version vous pouvez lire les "Release Notes" suivantes :
https://about.gitlab.com/releases/2021/02/11/security-release-gitlab-13-8-4-released/
https://about.gitlab.com/releases/2021/02/05/gitlab-13-8-3-released/

Commit d76cd22f authored by Marc Duez's avatar Marc Duez

interface : list.js updateElemStyle()

- don't need to rebuild an elem just to update style
parent 46f4c515
......@@ -247,8 +247,7 @@ ul{
@width_listElem : (@width_left_container - @width_scrollbar);
@margin_nameBox : 10px;
@width_nameBox2 : (@width_listElem - @width_starBox - @width_infoBox - @width_sizeBox - @width_clusterBox - @margin_nameBox);
@width_nameBox2 : (@width_listElem - @width_starBox - @width_infoBox - @width_sizeBox - @width_clusterBox - @margin_nameBox);
@width_nameBox : (@width_listElem - @width_starBox - @width_infoBox - @width_sizeBox - @width_clusterBox - @margin_nameBox);
.list:hover, .tagElem:hover{
......@@ -289,8 +288,8 @@ ul{
color : @select;
}
.nameBox2 {
width: @width_nameBox2;
.nameBox {
width: @width_nameBox;
margin-right: @margin_nameBox;
overflow: hidden;
display: inline-block;
......@@ -346,15 +345,7 @@ ul{
margin-left: 15px;
}
.nameBox {
width: 320px;
overflow: hidden;
display: inline-block;
height: 16px;
position: relative;
float:left;
}
#new_name{
font-family: monospace;
......
......@@ -96,7 +96,8 @@ List.prototype = {
div_elem.style.display="block";
var span0 = document.createElement('div');
span0.className = "nameBox2";
span0.className = "nameBox";
span0.id="name"+cloneID;
span0.ondblclick = function(){ self.editName(cloneID, this); }
span0.onclick = function(){ self.m.select(cloneID); }
span0.appendChild(document.createTextNode(this.m.getName(cloneID)));
......@@ -251,47 +252,81 @@ List.prototype = {
/*update une liste d'elements
*
* */
updateElem : function(list){
for ( var i=0; i<list.length ; i++){
var displayCluster=false;
var cluster =$("#cluster"+list[i])
if (cluster.length!=0 && cluster.css("display")!="none") displayCluster=true;
var div = document.getElementById(list[i]);
div.innerHTML='';
if (this.m.windows[list[i]].active || this.m.windows[list[i]].window=="other"){
if (this.m.windows[list[i]].select){
div.className="list list_select";
}else{
div.className="list";
}
var div2 = document.createElement('div');
this.div_elem(div2,list[i]);
div.appendChild(div2);
var div3=document.createElement('div');
this.div_cluster(div3, list[i], displayCluster);
div.appendChild(div3);
div.style.display="";
}else{
div.style.display="none";
}
var div4 = document.getElementById("_"+list[i]);
if (div4){
if (this.m.windows[list[i]].select){
div4.className="listElem selected";
}else{
div4.className="listElem";
}
}
}
updateElem : function(list){
for ( var i=0; i<list.length ; i++){
var displayCluster=false;
var cluster = $("#cluster"+list[i])
if (cluster.length!=0 && cluster.css("display")!="none") displayCluster=true;
var div = document.getElementById(list[i]);
if (this.m.windows[list[i]].active || this.m.windows[list[i]].window=="other"){
div.innerHTML='';
if (this.m.windows[list[i]].select){
div.className="list list_select";
}else{
div.className="list";
}
var div2 = document.createElement('div');
this.div_elem(div2,list[i]);
div.appendChild(div2);
var div3=document.createElement('div');
this.div_cluster(div3, list[i], displayCluster);
div.appendChild(div3);
div.style.display="";
}else{
div.style.display="none";
}
var div4 = document.getElementById("_"+list[i]);
if (div4){
if (this.m.windows[list[i]].select){
div4.className="listElem selected";
}else{
div4.className="listElem";
}
}
}
},
},
updateElemStyle : function(list){
for ( var i=0; i<list.length ; i++){
var div = document.getElementById(list[i]);
//color
var color = this.m.windows[list[i]].color;
document.getElementById("name"+list[i]).style.color=color
document.getElementById("size"+list[i]).style.color=color
//clone selected ?
if (this.m.windows[list[i]].select){
div.className="list list_select";
}else{
div.className="list";
}
//cluster sequence selected?
var div2 = document.getElementById("_"+list[i]);
if (div2){
if (this.m.windows[list[i]].select){
div2.className="listElem selected";
}else{
div2.className="listElem";
}
}
}
},
sortListBySize : function(){
self=this;
......
......@@ -109,7 +109,7 @@ Segment.prototype = {
div_elem.style.display="block";
var seq_name = document.createElement('span');
seq_name.className = "nameBox2";
seq_name.className = "nameBox";
seq_name.onclick = function(){ self.m.select(cloneID); }
seq_name.appendChild(document.createTextNode(this.m.getName(cloneID)));
seq_name.title = this.m.getName(cloneID);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment