Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
limbra
limbra
Commits
81a809e7
Commit
81a809e7
authored
Nov 02, 2016
by
LE GAC Renaud
Browse files
Update harvester/layout to select the row properly.
parent
022ae708
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
views/harvest/layout.html
views/harvest/layout.html
+11
-1
No files found.
views/harvest/layout.html
View file @
81a809e7
...
...
@@ -381,18 +381,28 @@
});
gridLog
.
on
(
'
itemcontextmenu
'
,
function
(
view
,
record
,
item
,
index
,
event
)
{
var
grid
=
this
;
event
.
stopEvent
();
// the editAndInsert action is only available when the record is
// not already in the database
if
(
record
.
get
(
'
action
'
)
===
'
idle
'
)
{
// disable the contextmenu
menu
.
items
.
get
(
'
editAndInsert
'
).
setDisabled
(
true
);
}
else
{
// enable the context menu and select the row
menu
.
items
.
get
(
'
editAndInsert
'
).
setDisabled
(
false
);
grid
.
getSelectionModel
().
select
(
record
);
}
// show the menu
menu
.
showAt
(
event
.
getXY
());
});
}
,
gridLog
);
</script>
\ No newline at end of file
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