X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=program%2Fjs%2Flist.js;h=1e326e27426058d3e1eeb8f7991ba6b93a99f3d3;hb=a2dd2e41259a5e90016efcd7d083020b95e25527;hp=e42d3f6b7bc7bbb9b89c5701e48cc89d457efde5;hpb=d326b0c67bb536d2296004c927e89ab8c4a548b5;p=roundcube.git diff --git a/program/js/list.js b/program/js/list.js index e42d3f6..1e326e2 100644 --- a/program/js/list.js +++ b/program/js/list.js @@ -1,752 +1,39 @@ -/* - +-----------------------------------------------------------------------+ - | RoundCube List Widget | - | | - | This file is part of the RoundCube Webmail client | - | Copyright (C) 2006-2008, RoundCube Dev, - Switzerland | - | Licensed under the GNU GPL | - | | - +-----------------------------------------------------------------------+ - | Authors: Thomas Bruederli | - | Charles McNulty | - +-----------------------------------------------------------------------+ - | Requires: common.js | - +-----------------------------------------------------------------------+ - - $Id: list.js 344 2006-09-18 03:49:28Z thomasb $ -*/ - - -/** - * RoundCube List Widget class - * @contructor - */ -function rcube_list_widget(list, p) - { - // static contants - this.ENTER_KEY = 13; - this.DELETE_KEY = 46; - - this.list = list ? list : null; - this.frame = null; - this.rows = []; - this.selection = []; - - this.subject_col = -1; - this.shiftkey = false; - this.multiselect = 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(){}; - this.events = { click:[], dblclick:[], select:[], keypress:[], dragstart:[], dragend:[] }; - - // 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(); - - var row; - for(var r=0; r