1
0
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:
Hideki Nakamura 2017-12-19 22:30:42 +09:00
parent ed52e5afd1
commit e07a4dc7ba

View File

@ -735,9 +735,6 @@ RED.projects = (function() {
return container;
}
$.fn.isVisible = function() {
return $.expr.filters.visible(this[0]);
}
function createSSHKeyList(options) {
options = options || {};
var minHeight = "33px";
@ -765,7 +762,7 @@ RED.projects = (function() {
$('<i/>',{class:"fa fa-trash-o"}).appendTo(deleteButton);
header.addClass("selectable");
row.click(function(evt) {
if ( !deleteButton.isVisible() ) {
if ( !deleteButton.is(":visible") ) {
if ( options.selectAction ) {
options.selectAction(entry, header);
}