mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 05:23:21 +00:00
PHRAS-3581 search buton redirect on home when expire session
This commit is contained in:
@@ -13,5 +13,5 @@ module.exports = {
|
|||||||
setupDir: _root + 'tests/setup/node.js',
|
setupDir: _root + 'tests/setup/node.js',
|
||||||
karmaConf: _root + 'config/karma.conf.js',
|
karmaConf: _root + 'config/karma.conf.js',
|
||||||
// change this version when you change JS file for lazy loading
|
// change this version when you change JS file for lazy loading
|
||||||
assetFileVersion: 29
|
assetFileVersion: 30
|
||||||
};
|
};
|
||||||
|
@@ -96,7 +96,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||||||
/******/ if (__webpack_require__.nc) {
|
/******/ if (__webpack_require__.nc) {
|
||||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||||
/******/ }
|
/******/ }
|
||||||
/******/ script.src = __webpack_require__.p + "lazy-" + ({}[chunkId]||chunkId) + ".js?v=29";
|
/******/ script.src = __webpack_require__.p + "lazy-" + ({}[chunkId]||chunkId) + ".js?v=30";
|
||||||
/******/ var timeout = setTimeout(onScriptComplete, 120000);
|
/******/ var timeout = setTimeout(onScriptComplete, 120000);
|
||||||
/******/ script.onerror = script.onload = onScriptComplete;
|
/******/ script.onerror = script.onload = onScriptComplete;
|
||||||
/******/ function onScriptComplete() {
|
/******/ function onScriptComplete() {
|
||||||
|
@@ -96,7 +96,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||||||
/******/ if (__webpack_require__.nc) {
|
/******/ if (__webpack_require__.nc) {
|
||||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||||
/******/ }
|
/******/ }
|
||||||
/******/ script.src = __webpack_require__.p + "lazy-" + ({}[chunkId]||chunkId) + ".min.js?v=29";
|
/******/ script.src = __webpack_require__.p + "lazy-" + ({}[chunkId]||chunkId) + ".min.js?v=30";
|
||||||
/******/ var timeout = setTimeout(onScriptComplete, 120000);
|
/******/ var timeout = setTimeout(onScriptComplete, 120000);
|
||||||
/******/ script.onerror = script.onload = onScriptComplete;
|
/******/ script.onerror = script.onload = onScriptComplete;
|
||||||
/******/ function onScriptComplete() {
|
/******/ function onScriptComplete() {
|
||||||
|
2
Phraseanet-production-client/dist/commons.js
vendored
2
Phraseanet-production-client/dist/commons.js
vendored
@@ -91,7 +91,7 @@
|
|||||||
/******/ if (__webpack_require__.nc) {
|
/******/ if (__webpack_require__.nc) {
|
||||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||||
/******/ }
|
/******/ }
|
||||||
/******/ script.src = __webpack_require__.p + "lazy-" + ({}[chunkId]||chunkId) + ".js?v=29";
|
/******/ script.src = __webpack_require__.p + "lazy-" + ({}[chunkId]||chunkId) + ".js?v=30";
|
||||||
/******/ var timeout = setTimeout(onScriptComplete, 120000);
|
/******/ var timeout = setTimeout(onScriptComplete, 120000);
|
||||||
/******/ script.onerror = script.onload = onScriptComplete;
|
/******/ script.onerror = script.onload = onScriptComplete;
|
||||||
/******/ function onScriptComplete() {
|
/******/ function onScriptComplete() {
|
||||||
|
@@ -91,7 +91,7 @@
|
|||||||
/******/ if (__webpack_require__.nc) {
|
/******/ if (__webpack_require__.nc) {
|
||||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||||
/******/ }
|
/******/ }
|
||||||
/******/ script.src = __webpack_require__.p + "lazy-" + ({}[chunkId]||chunkId) + ".min.js?v=29";
|
/******/ script.src = __webpack_require__.p + "lazy-" + ({}[chunkId]||chunkId) + ".min.js?v=30";
|
||||||
/******/ var timeout = setTimeout(onScriptComplete, 120000);
|
/******/ var timeout = setTimeout(onScriptComplete, 120000);
|
||||||
/******/ script.onerror = script.onload = onScriptComplete;
|
/******/ script.onerror = script.onload = onScriptComplete;
|
||||||
/******/ function onScriptComplete() {
|
/******/ function onScriptComplete() {
|
||||||
|
@@ -67916,9 +67916,12 @@ var search = function search(services) {
|
|||||||
}
|
}
|
||||||
beforeSearch();
|
beforeSearch();
|
||||||
},
|
},
|
||||||
error: function error() {
|
error: function error(data) {
|
||||||
answAjaxrunning = false;
|
answAjaxrunning = false;
|
||||||
$searchResult.removeClass('loading');
|
$searchResult.removeClass('loading');
|
||||||
|
if (data.status === 403 && data.getResponseHeader('x-phraseanet-end-session')) {
|
||||||
|
self.location.replace(self.location.href); // refresh will redirect to login
|
||||||
|
}
|
||||||
},
|
},
|
||||||
timeout: function timeout() {
|
timeout: function timeout() {
|
||||||
answAjaxrunning = false;
|
answAjaxrunning = false;
|
||||||
|
@@ -67916,9 +67916,12 @@ var search = function search(services) {
|
|||||||
}
|
}
|
||||||
beforeSearch();
|
beforeSearch();
|
||||||
},
|
},
|
||||||
error: function error() {
|
error: function error(data) {
|
||||||
answAjaxrunning = false;
|
answAjaxrunning = false;
|
||||||
$searchResult.removeClass('loading');
|
$searchResult.removeClass('loading');
|
||||||
|
if (data.status === 403 && data.getResponseHeader('x-phraseanet-end-session')) {
|
||||||
|
self.location.replace(self.location.href); // refresh will redirect to login
|
||||||
|
}
|
||||||
},
|
},
|
||||||
timeout: function timeout() {
|
timeout: function timeout() {
|
||||||
answAjaxrunning = false;
|
answAjaxrunning = false;
|
||||||
|
@@ -190,9 +190,12 @@ const search = services => {
|
|||||||
}
|
}
|
||||||
beforeSearch();
|
beforeSearch();
|
||||||
},
|
},
|
||||||
error: function () {
|
error: function (data) {
|
||||||
answAjaxrunning = false;
|
answAjaxrunning = false;
|
||||||
$searchResult.removeClass('loading');
|
$searchResult.removeClass('loading');
|
||||||
|
if (data.status === 403 && data.getResponseHeader('x-phraseanet-end-session')) {
|
||||||
|
self.location.replace(self.location.href); // refresh will redirect to login
|
||||||
|
}
|
||||||
},
|
},
|
||||||
timeout: function () {
|
timeout: function () {
|
||||||
answAjaxrunning = false;
|
answAjaxrunning = false;
|
||||||
|
@@ -59,7 +59,7 @@ class PhraseanetExtension extends \Twig_Extension
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
// change this version when you change JS file to force the navigation to reload js file
|
// change this version when you change JS file to force the navigation to reload js file
|
||||||
'assetFileVersion' => 29
|
'assetFileVersion' => 30
|
||||||
];
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user