NIFI-7577 Update jquery usages.

This closes #4357

Signed-off-by: Scott Aslan <scottyaslan@gmail.com>
This commit is contained in:
mtien 2020-06-25 09:56:19 -07:00 committed by Scott Aslan
parent 7df2421fe7
commit 87ec8558a4
5 changed files with 9 additions and 9 deletions

View File

@ -293,11 +293,11 @@
});
// create the button panel
var stringCheckPanel = $('<div class="string-check-container">');
var stringCheckPanel = $('<div class="string-check-container" />');
stringCheckPanel.appendTo(wrapper);
// build the custom checkbox
isEmpty = $('<div class="nf-checkbox string-check"/>')
isEmpty = $('<div class="nf-checkbox string-check" />')
.on('change', function (event, args) {
// if we are setting as an empty string, disable the editor
if (args.isChecked) {
@ -953,7 +953,7 @@
});
// create the input field
$('<textarea hidefocus rows="5" readonly="readonly"/>').css({
$('<textarea hidefocus rows="5" readonly="readonly" />').css({
'height': '80px',
'resize': 'both',
'width': cellNode.width() + 'px',
@ -1337,7 +1337,7 @@
content.find('.ellipsis').width(columnDef.width - 10).ellipsis();
// return the appropriate markup
return $('<div/>').append(content).html();
return $('<div />').append(content).html();
};
var propertyColumns = [

View File

@ -52,7 +52,7 @@
var tabPane = $(this);
// create the unorder list
var tabList = $('<ul/>').addClass('tab-pane');
var tabList = $('<ul />').addClass('tab-pane');
var shownTab = false;
// create each tab

View File

@ -331,7 +331,7 @@
editRemotePort.show();
}
} else if (port.exists === false) {
$('<div class="remote-port-removed"/>').appendTo(portContainerEditContainer).qtip($.extend({},
$('<div class="remote-port-removed" />').appendTo(portContainerEditContainer).qtip($.extend({},
nfCommon.config.tooltipConfig,
{
content: 'This port has been removed.'

View File

@ -123,11 +123,11 @@
});
// create the button panel
var stringCheckPanel = $('<div class="string-check-container">');
var stringCheckPanel = $('<div class="string-check-container" />');
stringCheckPanel.appendTo(wrapper);
// build the custom checkbox
isEmpty = $('<div class="nf-checkbox string-check"/>')
isEmpty = $('<div class="nf-checkbox string-check" />')
.on('change', function (event, args) {
// if we are setting as an empty string, disable the editor
if (args.isChecked) {

View File

@ -200,7 +200,7 @@
$('#shell-dialog').modal('show');
// create the content container
var contentContainer = $('<div>').addClass('shell-content-container').css({
var contentContainer = $('<div />').addClass('shell-content-container').css({
width: shell.width(),
height: shell.height()
}).append(content).appendTo(shell);