mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Merge branch 'master' into PHRAS-3445-fix-recordEdit-worker
This commit is contained in:
@@ -13,5 +13,5 @@ module.exports = {
|
||||
setupDir: _root + 'tests/setup/node.js',
|
||||
karmaConf: _root + 'config/karma.conf.js',
|
||||
// change this version when you change JS file for lazy loading
|
||||
jsFileVersion: 19
|
||||
jsFileVersion: 20
|
||||
};
|
||||
|
@@ -96,7 +96,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/ script.src = __webpack_require__.p + "lazy-" + ({}[chunkId]||chunkId) + ".js?v=19";
|
||||
/******/ script.src = __webpack_require__.p + "lazy-" + ({}[chunkId]||chunkId) + ".js?v=20";
|
||||
/******/ var timeout = setTimeout(onScriptComplete, 120000);
|
||||
/******/ script.onerror = script.onload = onScriptComplete;
|
||||
/******/ function onScriptComplete() {
|
||||
|
@@ -96,7 +96,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/ script.src = __webpack_require__.p + "lazy-" + ({}[chunkId]||chunkId) + ".min.js?v=19";
|
||||
/******/ script.src = __webpack_require__.p + "lazy-" + ({}[chunkId]||chunkId) + ".min.js?v=20";
|
||||
/******/ var timeout = setTimeout(onScriptComplete, 120000);
|
||||
/******/ script.onerror = script.onload = 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) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/ script.src = __webpack_require__.p + "lazy-" + ({}[chunkId]||chunkId) + ".js?v=19";
|
||||
/******/ script.src = __webpack_require__.p + "lazy-" + ({}[chunkId]||chunkId) + ".js?v=20";
|
||||
/******/ var timeout = setTimeout(onScriptComplete, 120000);
|
||||
/******/ script.onerror = script.onload = onScriptComplete;
|
||||
/******/ function onScriptComplete() {
|
||||
|
@@ -91,7 +91,7 @@
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/ script.src = __webpack_require__.p + "lazy-" + ({}[chunkId]||chunkId) + ".min.js?v=19";
|
||||
/******/ script.src = __webpack_require__.p + "lazy-" + ({}[chunkId]||chunkId) + ".min.js?v=20";
|
||||
/******/ var timeout = setTimeout(onScriptComplete, 120000);
|
||||
/******/ script.onerror = script.onload = onScriptComplete;
|
||||
/******/ function onScriptComplete() {
|
||||
|
45
Phraseanet-production-client/dist/production.js
vendored
45
Phraseanet-production-client/dist/production.js
vendored
@@ -60539,6 +60539,26 @@ var Feedback = function Feedback(services, options) {
|
||||
_.each((0, _jquery2.default)('.badges.selectionnable').children(), function (item) {
|
||||
var $elem = (0, _jquery2.default)(item);
|
||||
if ($elem.hasClass('selected')) {
|
||||
var userEmail = $elem.find('.user-email').val();
|
||||
|
||||
var action = (0, _jquery2.default)('input[name="feedbackAction"]').val();
|
||||
|
||||
if (action == 'adduser') {
|
||||
var value = (0, _jquery2.default)('#newParticipantsUser').val();
|
||||
var actualParticipantsName = value.split('; ');
|
||||
// remove the user in the list of new participant if yet exist
|
||||
var key = _jquery2.default.inArray(userEmail, actualParticipantsName);
|
||||
if (key > -1) {
|
||||
actualParticipantsName.splice(key, 1);
|
||||
if (actualParticipantsName.length != 0) {
|
||||
value = actualParticipantsName.join('; ');
|
||||
(0, _jquery2.default)('#newParticipantsUser').val(value);
|
||||
} else {
|
||||
(0, _jquery2.default)('#newParticipantsUser').val('');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$elem.fadeOut(function () {
|
||||
$elem.remove();
|
||||
});
|
||||
@@ -60818,18 +60838,21 @@ var Feedback = function Feedback(services, options) {
|
||||
this.container.on('click', '.user_content .badges .badge .deleter', function (event) {
|
||||
var $elem = (0, _jquery2.default)(this).closest('.badge');
|
||||
var userEmailEl = $elem.find('.user-email').val();
|
||||
var action = (0, _jquery2.default)('input[name="feedbackAction"]').val();
|
||||
|
||||
var value = (0, _jquery2.default)('#newParticipantsUser').val();
|
||||
var actualParticipantsName = value.split('; ');
|
||||
// remove the user in the list of new participant if yet exist
|
||||
var key = _jquery2.default.inArray(userEmailEl, actualParticipantsName);
|
||||
if (key > -1) {
|
||||
actualParticipantsName.splice(key, 1);
|
||||
if (actualParticipantsName.length != 0) {
|
||||
value = actualParticipantsName.join('; ');
|
||||
(0, _jquery2.default)('#newParticipantsUser').val(value);
|
||||
} else {
|
||||
(0, _jquery2.default)('#newParticipantsUser').val('');
|
||||
if (action == 'adduser') {
|
||||
var value = (0, _jquery2.default)('#newParticipantsUser').val();
|
||||
var actualParticipantsName = value.split('; ');
|
||||
// remove the user in the list of new participant if yet exist
|
||||
var key = _jquery2.default.inArray(userEmailEl, actualParticipantsName);
|
||||
if (key > -1) {
|
||||
actualParticipantsName.splice(key, 1);
|
||||
if (actualParticipantsName.length != 0) {
|
||||
value = actualParticipantsName.join('; ');
|
||||
(0, _jquery2.default)('#newParticipantsUser').val(value);
|
||||
} else {
|
||||
(0, _jquery2.default)('#newParticipantsUser').val('');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -60539,6 +60539,26 @@ var Feedback = function Feedback(services, options) {
|
||||
_.each((0, _jquery2.default)('.badges.selectionnable').children(), function (item) {
|
||||
var $elem = (0, _jquery2.default)(item);
|
||||
if ($elem.hasClass('selected')) {
|
||||
var userEmail = $elem.find('.user-email').val();
|
||||
|
||||
var action = (0, _jquery2.default)('input[name="feedbackAction"]').val();
|
||||
|
||||
if (action == 'adduser') {
|
||||
var value = (0, _jquery2.default)('#newParticipantsUser').val();
|
||||
var actualParticipantsName = value.split('; ');
|
||||
// remove the user in the list of new participant if yet exist
|
||||
var key = _jquery2.default.inArray(userEmail, actualParticipantsName);
|
||||
if (key > -1) {
|
||||
actualParticipantsName.splice(key, 1);
|
||||
if (actualParticipantsName.length != 0) {
|
||||
value = actualParticipantsName.join('; ');
|
||||
(0, _jquery2.default)('#newParticipantsUser').val(value);
|
||||
} else {
|
||||
(0, _jquery2.default)('#newParticipantsUser').val('');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$elem.fadeOut(function () {
|
||||
$elem.remove();
|
||||
});
|
||||
@@ -60818,18 +60838,21 @@ var Feedback = function Feedback(services, options) {
|
||||
this.container.on('click', '.user_content .badges .badge .deleter', function (event) {
|
||||
var $elem = (0, _jquery2.default)(this).closest('.badge');
|
||||
var userEmailEl = $elem.find('.user-email').val();
|
||||
var action = (0, _jquery2.default)('input[name="feedbackAction"]').val();
|
||||
|
||||
var value = (0, _jquery2.default)('#newParticipantsUser').val();
|
||||
var actualParticipantsName = value.split('; ');
|
||||
// remove the user in the list of new participant if yet exist
|
||||
var key = _jquery2.default.inArray(userEmailEl, actualParticipantsName);
|
||||
if (key > -1) {
|
||||
actualParticipantsName.splice(key, 1);
|
||||
if (actualParticipantsName.length != 0) {
|
||||
value = actualParticipantsName.join('; ');
|
||||
(0, _jquery2.default)('#newParticipantsUser').val(value);
|
||||
} else {
|
||||
(0, _jquery2.default)('#newParticipantsUser').val('');
|
||||
if (action == 'adduser') {
|
||||
var value = (0, _jquery2.default)('#newParticipantsUser').val();
|
||||
var actualParticipantsName = value.split('; ');
|
||||
// remove the user in the list of new participant if yet exist
|
||||
var key = _jquery2.default.inArray(userEmailEl, actualParticipantsName);
|
||||
if (key > -1) {
|
||||
actualParticipantsName.splice(key, 1);
|
||||
if (actualParticipantsName.length != 0) {
|
||||
value = actualParticipantsName.join('; ');
|
||||
(0, _jquery2.default)('#newParticipantsUser').val(value);
|
||||
} else {
|
||||
(0, _jquery2.default)('#newParticipantsUser').val('');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -82,6 +82,26 @@ const Feedback = function (services, options) {
|
||||
_.each($('.badges.selectionnable').children(), function(item) {
|
||||
var $elem = $(item);
|
||||
if($elem.hasClass('selected')) {
|
||||
let userEmail = $elem.find('.user-email').val();
|
||||
|
||||
let action = $('input[name="feedbackAction"]').val();
|
||||
|
||||
if (action == 'adduser') {
|
||||
let value = $('#newParticipantsUser').val();
|
||||
let actualParticipantsName = value.split('; ');
|
||||
// remove the user in the list of new participant if yet exist
|
||||
let key = $.inArray(userEmail, actualParticipantsName);
|
||||
if (key > -1) {
|
||||
actualParticipantsName.splice(key, 1);
|
||||
if (actualParticipantsName.length != 0) {
|
||||
value = actualParticipantsName.join('; ');
|
||||
$('#newParticipantsUser').val(value);
|
||||
} else {
|
||||
$('#newParticipantsUser').val('');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$elem.fadeOut(function () {
|
||||
$elem.remove();
|
||||
});
|
||||
@@ -369,18 +389,21 @@ const Feedback = function (services, options) {
|
||||
this.container.on('click', '.user_content .badges .badge .deleter', function (event) {
|
||||
var $elem = $(this).closest('.badge');
|
||||
let userEmailEl = $elem.find('.user-email').val();
|
||||
let action = $('input[name="feedbackAction"]').val();
|
||||
|
||||
let value = $('#newParticipantsUser').val();
|
||||
let actualParticipantsName = value.split('; ');
|
||||
// remove the user in the list of new participant if yet exist
|
||||
let key = $.inArray(userEmailEl, actualParticipantsName);
|
||||
if (key > -1) {
|
||||
actualParticipantsName.splice(key, 1);
|
||||
if (actualParticipantsName.length != 0) {
|
||||
value = actualParticipantsName.join('; ');
|
||||
$('#newParticipantsUser').val(value);
|
||||
} else {
|
||||
$('#newParticipantsUser').val('');
|
||||
if (action == 'adduser') {
|
||||
let value = $('#newParticipantsUser').val();
|
||||
let actualParticipantsName = value.split('; ');
|
||||
// remove the user in the list of new participant if yet exist
|
||||
let key = $.inArray(userEmailEl, actualParticipantsName);
|
||||
if (key > -1) {
|
||||
actualParticipantsName.splice(key, 1);
|
||||
if (actualParticipantsName.length != 0) {
|
||||
value = actualParticipantsName.join('; ');
|
||||
$('#newParticipantsUser').val(value);
|
||||
} else {
|
||||
$('#newParticipantsUser').val('');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -59,7 +59,7 @@ class PhraseanetExtension extends \Twig_Extension
|
||||
{
|
||||
return [
|
||||
// change this version when you change JS file to force the navigation to reload js file
|
||||
'jsFileVersion' => 19
|
||||
'jsFileVersion' => 20
|
||||
];
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user