Bug 98595 Ability to disable lists, trees completely

patch by ajvincent@gmail.com r=mconnor sr=neil
This commit is contained in:
timeless%mozdev.org 2006-04-05 06:30:37 +00:00
Родитель 56b76950e7
Коммит 72965522a4
2 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -628,6 +628,8 @@
click, so that drags work correctly. -->
<handler event="mousedown" clickcount="1">
<![CDATA[
if (this.parentNode.disabled)
return;
if (((!this._isAccelPressed(event) ||
!this.parentNode.pageUpOrDownMovesSelection) &&
!event.shiftKey && !event.metaKey) ||
@ -674,6 +676,8 @@
except this item. -->
<handler event="click" button="0" clickcount="1">
<![CDATA[
if (this.parentNode.disabled)
return;
var row = {};
var col = {};
var obj = {};
@ -732,6 +736,8 @@
<!-- double-click -->
<handler event="click" clickcount="2">
<![CDATA[
if (this.parentNode.disabled)
return;
var b = this.parentNode.treeBoxObject;
var row = b.view.selection.currentIndex;
if (row == -1 || !b.view.isContainer(row))

Просмотреть файл

@ -600,6 +600,8 @@
click, so that drags work correctly. -->
<handler event="mousedown" clickcount="1">
<![CDATA[
if (this.parentNode.disabled)
return;
if (((!event.ctrlKey || !this.parentNode.pageUpOrDownMovesSelection) &&
!event.shiftKey && !event.metaKey) ||
this.parentNode.view.selection.single) {
@ -645,6 +647,8 @@
except this item. -->
<handler event="click" button="0" clickcount="1">
<![CDATA[
if (this.parentNode.disabled)
return;
var row = {};
var col = {};
var obj = {};
@ -703,6 +707,8 @@
<!-- double-click -->
<handler event="click" clickcount="2">
<![CDATA[
if (this.parentNode.disabled)
return;
var b = this.parentNode.treeBoxObject;
var row = b.view.selection.currentIndex;
if (row == -1 || !b.view.isContainer(row))