merge of '4b47b695463a14cf2c3acf6fe59fa9d778fce6c5'

and '5023b99b30755688cc4fc864ca034ae7966b1af9'

Monotone-Parent: 4b47b695463a14cf2c3acf6fe59fa9d778fce6c5
Monotone-Parent: 5023b99b30755688cc4fc864ca034ae7966b1af9
Monotone-Revision: 72af4681aa9d575ba898d28f6ce6d07d6d5dafd5

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2010-08-19T17:45:38
This commit is contained in:
Francis Lachapelle
2010-08-19 17:45:38 +00:00
8 changed files with 928 additions and 5 deletions
+7 -2
View File
@@ -24,11 +24,12 @@ var SOGoResizableTableInterface = {
}
SOGoResizableTable._resize(this, $(cell), i, null, cell.getWidth());
}
this.computeColumnsWidths();
Event.observe(window, "resize", this.resize.bind(this));
},
resize: function(e) {
// Only resize the columns after a certain delay, otherwise it slow
// Only resize the columns after a certain delay, otherwise it slows
// down the interface.
if (this.delayedResize) window.clearTimeout(this.delayedResize);
this.delayedResize = this._resize.bind(this).delay(0.2);
@@ -62,7 +63,7 @@ var SOGoResizableTableInterface = {
this.ratios = relativeWidths;
},
saveColumnsState: function() {
computeColumnsWidths: function() {
this.ratios = new Hash();
var tableWidth = 100/this.getWidth();
var cells = $(this).down('tr').childElements();
@@ -71,6 +72,10 @@ var SOGoResizableTableInterface = {
if (cell.hasClassName('resizable'))
this.ratios.set(cell.id, Math.round(cell.getWidth()*tableWidth));
}
},
saveColumnsState: function() {
this.computeColumnsWidths();
if (!$(document.body).hasClassName("popup")) {
var url = ApplicationBaseURL + "saveColumnsState";
var data = this.ratios;
-1
View File
@@ -251,7 +251,6 @@ function _editFilter(filterId) {
}
function onFilterAdd(event) {
log("onFilterAdd");
_editFilter("new");
event.stop();
}