mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Change the implementation of visible check
This commit is contained in:
parent
ed52e5afd1
commit
e07a4dc7ba
@ -735,9 +735,6 @@ RED.projects = (function() {
|
|||||||
return container;
|
return container;
|
||||||
}
|
}
|
||||||
|
|
||||||
$.fn.isVisible = function() {
|
|
||||||
return $.expr.filters.visible(this[0]);
|
|
||||||
}
|
|
||||||
function createSSHKeyList(options) {
|
function createSSHKeyList(options) {
|
||||||
options = options || {};
|
options = options || {};
|
||||||
var minHeight = "33px";
|
var minHeight = "33px";
|
||||||
@ -765,7 +762,7 @@ RED.projects = (function() {
|
|||||||
$('<i/>',{class:"fa fa-trash-o"}).appendTo(deleteButton);
|
$('<i/>',{class:"fa fa-trash-o"}).appendTo(deleteButton);
|
||||||
header.addClass("selectable");
|
header.addClass("selectable");
|
||||||
row.click(function(evt) {
|
row.click(function(evt) {
|
||||||
if ( !deleteButton.isVisible() ) {
|
if ( !deleteButton.is(":visible") ) {
|
||||||
if ( options.selectAction ) {
|
if ( options.selectAction ) {
|
||||||
options.selectAction(entry, header);
|
options.selectAction(entry, header);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user