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 (currentLocation !== option.value) {
|
||||
// get an access token if necessary
|
||||
var getAccessToken = $.Deferred(function (deferred) {
|
||||
var getAccessToken = $$.Deferred(function (deferred) {
|
||||
if (nf.Storage.hasItem('jwt')) {
|
||||
$.ajax({
|
||||
$$.ajax({
|
||||
type: 'POST',
|
||||
url: '../nifi-api/access/ui-extension-token'
|
||||
}).done(function (token) {
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
/**
|
||||
* Performs ajax setup for use within NiFi.
|
||||
*/
|
||||
$(document).ready(function () {
|
||||
$(document).ready(function ($) {
|
||||
// include jwt when possible
|
||||
$.ajaxSetup({
|
||||
'beforeSend': function(xhr) {
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
* Captures keydown on the window to ensure certain keystrokes are handled in a consistent manner, particularly those
|
||||
* 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
|
||||
$(window).on('keydown', function (evt) {
|
||||
// consider escape, before checking dialogs
|
||||
|
|
Loading…
Reference in New Issue