Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
plugin_dbui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
w2pext
plugin_dbui
Commits
ed1e122c
Commit
ed1e122c
authored
14 years ago
by
Renaud Le Gac
Browse files
Options
Downloads
Patches
Plain Diff
Upgrade to be compliant with new classes.
parent
c88349b9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
static/plugin_dbui/src/appgridroweditortoolbar.js
+16
-23
16 additions, 23 deletions
static/plugin_dbui/src/appgridroweditortoolbar.js
with
16 additions
and
23 deletions
static/plugin_dbui/src/appgridroweditortoolbar.js
+
16
−
23
View file @
ed1e122c
/**
* The row editor toolbar plugin
*
* Add a toolbar to the grid with button to manipulate the App.grid.RowEditor.
* The latter is instantiated if not already create.
* Add a toolbar with buttons to manipulate the App.grid.RowEditor.
* Requires the App.grid.GridRowEditor plugin.
*
* The ptype of this component is pGridRowEditorToolbar.
*
...
...
@@ -26,14 +24,9 @@ App.grid.RowEditorToolbar = Ext.extend(Object, {
var
toolbar
;
// create and initialize the underlying RowEditor
if
(
!
grid
.
editor
)
{
grid
.
editor
=
new
App
.
grid
.
RowEditor
({
formModel
:
grid
.
model
.
formModel
,
table
:
grid
.
model
.
table
});
grid
.
editor
.
init
(
grid
);
// protection
if
(
!
grid
.
rowEditor
)
{
throw
new
Error
(
'
no grid row editor !!!
'
);
}
toolbar
=
grid
.
getTopToolbar
();
...
...
@@ -41,30 +34,30 @@ App.grid.RowEditorToolbar = Ext.extend(Object, {
toolbar
.
add
([{
text
:
'
Add
'
,
iconCls
:
'
silk-add
'
,
handler
:
grid
.
e
ditor
.
onAddRow
,
scope
:
grid
.
e
ditor
handler
:
grid
.
rowE
ditor
.
onAddRow
,
scope
:
grid
.
rowE
ditor
},
'
'
,
{
text
:
'
Delete
'
,
iconCls
:
'
silk-delete
'
,
handler
:
grid
.
e
ditor
.
onDeleteRow
,
scope
:
grid
.
e
ditor
handler
:
grid
.
rowE
ditor
.
onDeleteRow
,
scope
:
grid
.
rowE
ditor
},
'
'
,
{
text
:
'
Duplicate
'
,
iconCls
:
'
silk-clone
'
,
handler
:
grid
.
e
ditor
.
onDuplicateRow
,
scope
:
grid
.
e
ditor
handler
:
grid
.
rowE
ditor
.
onDuplicateRow
,
scope
:
grid
.
rowE
ditor
},
'
'
,
{
text
:
'
Update
'
,
iconCls
:
'
silk-update
'
,
handler
:
grid
.
e
ditor
.
onEditRow
,
scope
:
grid
.
e
ditor
handler
:
grid
.
rowE
ditor
.
onEditRow
,
scope
:
grid
.
rowE
ditor
},
'
'
,
{
text
:
'
View
'
,
iconCls
:
'
silk-view
'
,
handler
:
grid
.
e
ditor
.
onViewRow
,
scope
:
grid
.
e
ditor
handler
:
grid
.
rowE
ditor
.
onViewRow
,
scope
:
grid
.
rowE
ditor
},
'
-
'
]);
}
});
Ext
.
preg
(
'
pGridRowEditorToolbar
'
,
App
.
grid
.
RowEditorToolbar
);
Ext
.
preg
(
'
pGridRowEditorToolbar
'
,
App
.
grid
.
RowEditorToolbar
);
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment