mirror of https://github.com/apache/nifi.git
NIFI-7577 Update jquery usages.
This closes #4357 Signed-off-by: Scott Aslan <scottyaslan@gmail.com>
This commit is contained in:
parent
7df2421fe7
commit
87ec8558a4
|
@ -293,11 +293,11 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
// create the button panel
|
// create the button panel
|
||||||
var stringCheckPanel = $('<div class="string-check-container">');
|
var stringCheckPanel = $('<div class="string-check-container" />');
|
||||||
stringCheckPanel.appendTo(wrapper);
|
stringCheckPanel.appendTo(wrapper);
|
||||||
|
|
||||||
// build the custom checkbox
|
// build the custom checkbox
|
||||||
isEmpty = $('<div class="nf-checkbox string-check"/>')
|
isEmpty = $('<div class="nf-checkbox string-check" />')
|
||||||
.on('change', function (event, args) {
|
.on('change', function (event, args) {
|
||||||
// if we are setting as an empty string, disable the editor
|
// if we are setting as an empty string, disable the editor
|
||||||
if (args.isChecked) {
|
if (args.isChecked) {
|
||||||
|
@ -953,7 +953,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
// create the input field
|
// create the input field
|
||||||
$('<textarea hidefocus rows="5" readonly="readonly"/>').css({
|
$('<textarea hidefocus rows="5" readonly="readonly" />').css({
|
||||||
'height': '80px',
|
'height': '80px',
|
||||||
'resize': 'both',
|
'resize': 'both',
|
||||||
'width': cellNode.width() + 'px',
|
'width': cellNode.width() + 'px',
|
||||||
|
@ -1337,7 +1337,7 @@
|
||||||
content.find('.ellipsis').width(columnDef.width - 10).ellipsis();
|
content.find('.ellipsis').width(columnDef.width - 10).ellipsis();
|
||||||
|
|
||||||
// return the appropriate markup
|
// return the appropriate markup
|
||||||
return $('<div/>').append(content).html();
|
return $('<div />').append(content).html();
|
||||||
};
|
};
|
||||||
|
|
||||||
var propertyColumns = [
|
var propertyColumns = [
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
var tabPane = $(this);
|
var tabPane = $(this);
|
||||||
|
|
||||||
// create the unorder list
|
// create the unorder list
|
||||||
var tabList = $('<ul/>').addClass('tab-pane');
|
var tabList = $('<ul />').addClass('tab-pane');
|
||||||
var shownTab = false;
|
var shownTab = false;
|
||||||
|
|
||||||
// create each tab
|
// create each tab
|
||||||
|
|
|
@ -331,7 +331,7 @@
|
||||||
editRemotePort.show();
|
editRemotePort.show();
|
||||||
}
|
}
|
||||||
} else if (port.exists === false) {
|
} 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,
|
nfCommon.config.tooltipConfig,
|
||||||
{
|
{
|
||||||
content: 'This port has been removed.'
|
content: 'This port has been removed.'
|
||||||
|
|
|
@ -123,11 +123,11 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
// create the button panel
|
// create the button panel
|
||||||
var stringCheckPanel = $('<div class="string-check-container">');
|
var stringCheckPanel = $('<div class="string-check-container" />');
|
||||||
stringCheckPanel.appendTo(wrapper);
|
stringCheckPanel.appendTo(wrapper);
|
||||||
|
|
||||||
// build the custom checkbox
|
// build the custom checkbox
|
||||||
isEmpty = $('<div class="nf-checkbox string-check"/>')
|
isEmpty = $('<div class="nf-checkbox string-check" />')
|
||||||
.on('change', function (event, args) {
|
.on('change', function (event, args) {
|
||||||
// if we are setting as an empty string, disable the editor
|
// if we are setting as an empty string, disable the editor
|
||||||
if (args.isChecked) {
|
if (args.isChecked) {
|
||||||
|
|
|
@ -200,7 +200,7 @@
|
||||||
$('#shell-dialog').modal('show');
|
$('#shell-dialog').modal('show');
|
||||||
|
|
||||||
// create the content container
|
// create the content container
|
||||||
var contentContainer = $('<div>').addClass('shell-content-container').css({
|
var contentContainer = $('<div />').addClass('shell-content-container').css({
|
||||||
width: shell.width(),
|
width: shell.width(),
|
||||||
height: shell.height()
|
height: shell.height()
|
||||||
}).append(content).appendTo(shell);
|
}).append(content).appendTo(shell);
|
||||||
|
|
Loading…
Reference in New Issue