diff --git a/plugins/_disabled/balanced/before_content.php b/plugins/_disabled/balanced/before_content.php
deleted file mode 100644
index 2abced6..0000000
--- a/plugins/_disabled/balanced/before_content.php
+++ /dev/null
@@ -1 +0,0 @@
-
= THUMB_SIZE ?>
diff --git a/plugins/_disabled/balanced/head.php b/plugins/_disabled/balanced/head.php
index 44cca72..f2c2bb9 100644
--- a/plugins/_disabled/balanced/head.php
+++ b/plugins/_disabled/balanced/head.php
@@ -1,9 +1,10 @@
diff --git a/plugins/_disabled/balanced/scripts.js b/plugins/_disabled/balanced/scripts.js
index 51eb4c6..65ef586 100644
--- a/plugins/_disabled/balanced/scripts.js
+++ b/plugins/_disabled/balanced/scripts.js
@@ -1,12 +1,27 @@
-function applyOptimalImagesSize()
+/*Copyright (C) 2013 Baptiste Clement
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see .
+*/
+
+function applyOptimalImagesSize(bestHeight)
{
- var divimages = document.getElementsByClassName("image");
+ var divimages = document.getElementsByClassName("image imagepreview");
var images = new Array();
for(var i = 0 ; i < divimages.length ; ++i)
{
images.push(divimages[i].children[0].children[0]);
}
- var bestHeight = parseInt(document.getElementById("thumbsize").textContent);
var newHList = getOptimalHeights(images, bestHeight);
for( var i = 0 ; i < images.length ; ++i)
{
@@ -96,9 +111,6 @@ function getAllImageSizesForHeight(images, height)
return sizes;
}
-
-
-
//Renvoi un tableau de tableau, correspondant au découpage du tableau d'entrée découpé par tranche de MAX
function splitTab(tab, max)
{