Change the implementation of visible check

pull/1522/head
Hideki Nakamura 2017-12-19 22:30:42 +09:00
parent ed52e5afd1
commit e07a4dc7ba
1 changed files with 1 additions and 4 deletions

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);
}