mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-30 02:22:47 +00:00
Added migration script for Oracle Calendar. Updates the guides for the 1.3.1 release and the NEWS file.
Monotone-Parent: 618ad1eb6b0c707afbfd6673022c7840209747e1 Monotone-Revision: b59f331214320317bf10c70f2db10187fcd5f29d Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2010-08-19T13:48:53
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user