Commit 38039de8 authored by Ryan Herbert's avatar Ryan Herbert

update vmi files

parent eb7eba0f
......@@ -67,11 +67,4 @@
height: 100%;
/*height: 200px;*/
}
.view:nth-last-child(n+4) {
display: none;
/*Je glisse ici un lien utile sur lequel je suis tombé en cherchant ça
Ce n'est pas directement lié mais c'est une astuce plutît sympa
https://stackoverflow.com/questions/8720931/can-css-detect-the-number-of-children-an-element-has*/
}
/*##############################################*/
......@@ -76,7 +76,8 @@ VMI.prototype = {
**/
setView : function(view, panel) {
if (panel) view.parentId = panel;
document.getElementById(view.parentId).appendChild(view.node);
var parent = document.getElementById(view.parentId)
parent.insertBefore(view.node, parent.firstChild);
},
/**
......@@ -105,19 +106,10 @@ VMI.prototype = {
**/
viewSetter : function(view) {
var self = this
var focus = function(target) {
target.className += " focused";
var listener = function() {
self.hideEditors();
target.removeEventListener('click', listener);
};
target.addEventListener('click', listener);
}
var f = function(e) {
self.hideEditors();
if (e.ctrlKey) {
self.hideEditors();
available_panels = $(".editor")
var id_panel;
$(".editor").each(function(i, obj){
......
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