Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
363d7139
Commit
363d7139
authored
May 06, 2014
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add CheckColumn class
parent
424ee652
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
70 additions
and
0 deletions
+70
-0
ext-pve.css
www/css/ext-pve.css
+16
-0
Makefile
www/images/Makefile
+5
-0
checked.png
www/images/checked.png
+0
-0
unchecked.png
www/images/unchecked.png
+0
-0
Makefile
www/manager/Makefile
+11
-0
CheckColumn.js
www/manager/grid/CheckColumn.js
+38
-0
No files found.
www/css/ext-pve.css
View file @
363d7139
...
...
@@ -15,6 +15,22 @@
background-image
:
url(../images/display.png)
;
}
.x-grid-checkheader
{
height
:
14px
;
background-image
:
url(../images/unchecked.png)
;
background-position
:
50%
-2px
;
background-repeat
:
no-repeat
;
background-color
:
transparent
;
}
.x-grid-checkheader-checked
{
background-image
:
url(../images/checked.png)
;
}
.x-grid-checkheader-editor
.x-form-cb-wrap
{
text-align
:
center
;
}
.x-selectable
,
.x-selectable
*
{
-moz-user-select
:
text
!important
;
-khtml-user-select
:
text
!important
;
...
...
www/images/Makefile
View file @
363d7139
...
...
@@ -10,7 +10,12 @@ all:
# tigervnc.png converted from tigervnc sources
# (tigervnc.org/media/tigervnc_16.svg)
# checked.png converted from extjs examples/ux/css/images/checked.gif
# unchecked.png converted from extjs examples/ux/css/images/unchecked.gif
GNOME_IMAGES
=
\
checked.png
\
unchecked.png
\
start.png
\
stop.png
\
gtk-stop.png
\
...
...
www/images/checked.png
0 → 100644
View file @
363d7139
478 Bytes
www/images/unchecked.png
0 → 100644
View file @
363d7139
322 Bytes
www/manager/Makefile
View file @
363d7139
...
...
@@ -43,6 +43,8 @@ JSSRC= \
form/FileSelector.js
\
form/StorageSelector.js
\
form/BridgeSelector.js
\
form/SecurityGroupSelector.js
\
form/IPSetSelector.js
\
form/CPUModelSelector.js
\
form/VNCKeyboardSelector.js
\
form/LanguageSelector.js
\
...
...
@@ -53,6 +55,7 @@ JSSRC= \
form/DayOfWeekSelector.js
\
form/BackupModeSelector.js
\
form/ScsiHwSelector.js
\
form/FirewallPolicySelector.js
\
dc/Tasks.js
\
dc/Log.js
\
panel/StatusPanel.js
\
...
...
@@ -66,14 +69,21 @@ JSSRC= \
window/Backup.js
\
window/Restore.js
\
panel/NotesView.js
\
grid/CheckColumn.js
\
grid/SelectFeature.js
\
grid/ObjectGrid.js
\
grid/ResourceGrid.js
\
grid/PoolMembers.js
\
grid/FirewallRules.js
\
grid/FirewallAliases.js
\
grid/FirewallOptions.js
\
tree/ResourceTree.js
\
panel/IPSet.js
\
panel/ConfigPanel.js
\
panel/SubConfigPanel.js
\
grid/BackupView.js
\
panel/LogView.js
\
panel/Firewall.js
\
ceph/Pool.js
\
ceph/OSD.js
\
ceph/Disks.js
\
...
...
@@ -161,6 +171,7 @@ JSSRC= \
dc/Backup.js
\
dc/HAConfig.js
\
dc/Support.js
\
dc/SecurityGroups.js
\
dc/Config.js
\
Workspace.js
...
...
www/manager/grid/CheckColumn.js
0 → 100644
View file @
363d7139
// partly copied from extjs/examples/ux/CheckColumn.js
Ext
.
define
(
'
PVE.CheckColumn
'
,
{
extend
:
'
Ext.grid.column.Column
'
,
alias
:
'
widget.checkcolumn
'
,
constructor
:
function
(
cfg
)
{
this
.
renderer
=
function
(
value
){
var
cssPrefix
=
Ext
.
baseCSSPrefix
,
cls
=
[
cssPrefix
+
'
grid-checkheader
'
];
if
(
value
)
{
cls
.
push
(
cssPrefix
+
'
grid-checkheader-checked
'
);
}
return
'
<div class="
'
+
cls
.
join
(
'
'
)
+
'
"> </div>
'
;
};
this
.
addEvents
(
'
checkchange
'
);
this
.
callParent
(
arguments
);
},
processEvent
:
function
(
type
,
view
,
cell
,
recordIndex
,
cellIndex
,
e
)
{
if
(
type
==
'
mousedown
'
)
{
var
record
=
view
.
panel
.
store
.
getAt
(
recordIndex
),
dataIndex
=
this
.
dataIndex
,
checked
=
!
record
.
get
(
dataIndex
);
record
.
set
(
dataIndex
,
checked
);
this
.
fireEvent
(
'
checkchange
'
,
this
,
record
,
checked
);
return
false
;
}
else
{
return
this
.
callParent
(
arguments
);
}
}
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment