Do not show row context menu if results are empty
This commit is contained in:
parent
6ed3d5b501
commit
29d4b276e2
File diff suppressed because one or more lines are too long
@ -874,8 +874,10 @@ function bindTableHeaderMenu() {
|
|||||||
scopes: "td",
|
scopes: "td",
|
||||||
target: "#results_row_menu",
|
target: "#results_row_menu",
|
||||||
before: function(e, element, target) {
|
before: function(e, element, target) {
|
||||||
// Enable menu for browsing table rows view only.
|
var isEmpty = $("#results").hasClass("empty");
|
||||||
if ($("#results").data("mode") != "browse") {
|
var isBrowsing = $("#results").data("mode") == "browse";
|
||||||
|
|
||||||
|
if (isEmpty || !isBrowsing) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
this.closemenu();
|
this.closemenu();
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user