mirror of https://github.com/apache/nifi.git
NIFI-1564:
- Addressing issue referencing the global jQuery variable in the content viewer. - This closes #421
This commit is contained in:
parent
a0ff2f7a9f
commit
b075f238a5
|
@ -100,9 +100,9 @@
|
||||||
// if the selection has changesd, reload the page
|
// if the selection has changesd, reload the page
|
||||||
if (currentLocation !== option.value) {
|
if (currentLocation !== option.value) {
|
||||||
// get an access token if necessary
|
// get an access token if necessary
|
||||||
var getAccessToken = $.Deferred(function (deferred) {
|
var getAccessToken = $$.Deferred(function (deferred) {
|
||||||
if (nf.Storage.hasItem('jwt')) {
|
if (nf.Storage.hasItem('jwt')) {
|
||||||
$.ajax({
|
$$.ajax({
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: '../nifi-api/access/ui-extension-token'
|
url: '../nifi-api/access/ui-extension-token'
|
||||||
}).done(function (token) {
|
}).done(function (token) {
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
/**
|
/**
|
||||||
* Performs ajax setup for use within NiFi.
|
* Performs ajax setup for use within NiFi.
|
||||||
*/
|
*/
|
||||||
$(document).ready(function () {
|
$(document).ready(function ($) {
|
||||||
// include jwt when possible
|
// include jwt when possible
|
||||||
$.ajaxSetup({
|
$.ajaxSetup({
|
||||||
'beforeSend': function(xhr) {
|
'beforeSend': function(xhr) {
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
* Captures keydown on the window to ensure certain keystrokes are handled in a consistent manner, particularly those
|
* Captures keydown on the window to ensure certain keystrokes are handled in a consistent manner, particularly those
|
||||||
* that can lead to browser navigation/reload.
|
* that can lead to browser navigation/reload.
|
||||||
*/
|
*/
|
||||||
$(document).ready(function () {
|
$(document).ready(function ($) {
|
||||||
// setup a listener to ensure keystrokes are being overridden in a consistent manner
|
// setup a listener to ensure keystrokes are being overridden in a consistent manner
|
||||||
$(window).on('keydown', function (evt) {
|
$(window).on('keydown', function (evt) {
|
||||||
// consider escape, before checking dialogs
|
// consider escape, before checking dialogs
|
||||||
|
|
Loading…
Reference in New Issue