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
856b7770
Commit
856b7770
authored
14 years ago
by
Renaud Le Gac
Browse files
Options
Downloads
Patches
Plain Diff
don't instanciate the underlying plugin pGridEditor.
Raise an error is absent.
parent
33b69680
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/appgridroweditorcontextmenu.js
+5
-5
5 additions, 5 deletions
static/plugin_dbui/src/appgridroweditorcontextmenu.js
with
5 additions
and
5 deletions
static/plugin_dbui/src/appgridroweditorcontextmenu.js
+
5
−
5
View file @
856b7770
...
...
@@ -4,6 +4,8 @@
* Display the context menu when the user right click on a row.
* The content of the menu allows to manipulate the App.grid.RowEditor
*
* Requires the App.grid.GridRowEditor plugin.
*
* The ptype of this component is pGridRowEditorContextMenu.
*
* @extends Object
...
...
@@ -16,7 +18,7 @@ Ext.namespace('App.grid');
App
.
grid
.
RowEditorContextMenu
=
Ext
.
extend
(
Object
,
{
/**
* Private
parame
te
r
identifying the type of plugin
* Private
attribu
te identifying the type of plugin
*/
ptype
:
'
pGridRowEditorContextMenu
'
,
...
...
@@ -28,11 +30,9 @@ App.grid.RowEditorContextMenu = Ext.extend(Object, {
var
menu
=
new
Ext
.
menu
.
Menu
();
// RowEditor can be shared between several plugin
// create and initialize the underlying RowEditor
// protection
if
(
!
grid
.
rowEditor
)
{
grid
.
rowEditor
=
new
App
.
grid
.
RowEditor
();
grid
.
rowEditor
.
init
(
grid
);
throw
new
Error
(
'
no grid row editor !!!
'
);
}
grid
.
addListener
(
'
containercontextmenu
'
,
this
.
onContainerContextMenu
,
menu
);
...
...
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