X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=program%2Fjs%2Flist.js;h=5116df78b21ad40da321c2e59c88935530df1406;hb=76507f7c63a660742e76889ad6e3919f3dde3bb0;hp=2588556eea2c131f2fc692c02de28f5fd845dc31;hpb=b68022ca3782d5eb5a1a7ef6f8cf7abe1dc15bd6;p=roundcube.git diff --git a/program/js/list.js b/program/js/list.js index 2588556..5116df7 100644 --- a/program/js/list.js +++ b/program/js/list.js @@ -1,885 +1,39 @@ -/* - +-----------------------------------------------------------------------+ - | RoundCube List Widget | - | | - | This file is part of the RoundCube Webmail client | - | Copyright (C) 2006-2009, RoundCube Dev, - Switzerland | - | Licensed under the GNU GPL | - | | - +-----------------------------------------------------------------------+ - | Authors: Thomas Bruederli | - | Charles McNulty | - +-----------------------------------------------------------------------+ - | Requires: common.js | - +-----------------------------------------------------------------------+ - - $Id: list.js 2761 2009-07-17 08:46:59Z alec $ -*/ - - -/** - * RoundCube List Widget class - * @contructor - */ -function rcube_list_widget(list, p) - { - // static contants - this.ENTER_KEY = 13; - this.DELETE_KEY = 46; - this.BACKSPACE_KEY = 8; - - this.list = list ? list : null; - this.frame = null; - this.rows = []; - this.selection = []; - this.rowcount = 0; - - this.subject_col = -1; - this.shiftkey = false; - this.multiselect = false; - this.multi_selecting = false; - this.draggable = false; - this.keyboard = false; - this.toggleselect = false; - - this.dont_select = false; - this.drag_active = false; - this.last_selected = 0; - this.shift_start = 0; - this.in_selection_before = false; - this.focused = false; - this.drag_mouse_start = null; - this.dblclick_time = 600; - this.row_init = function(){}; - - // overwrite default paramaters - if (p && typeof(p)=='object') - for (var n in p) - this[n] = p[n]; - } - - -rcube_list_widget.prototype = { - - -/** - * get all message rows from HTML table and init each row - */ -init: function() -{ - if (this.list && this.list.tBodies[0]) - { - this.rows = new Array(); - this.rowcount = 0; - - var row; - for(var r=0; r