Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

51 linhas
4.1KB

  1. (self["webpackChunk"] = self["webpackChunk"] || []).push([["sov-ticket"],{
  2. /***/ "../LaClicBundle/SovBundle/Resources/assets/app/admin/ticket/app.ticket.js":
  3. /*!*********************************************************************************!*\
  4. !*** ../LaClicBundle/SovBundle/Resources/assets/app/admin/ticket/app.ticket.js ***!
  5. \*********************************************************************************/
  6. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  7. "use strict";
  8. __webpack_require__.r(__webpack_exports__);
  9. /* harmony import */ var _ticket_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ticket.js */ "../LaClicBundle/SovBundle/Resources/assets/app/admin/ticket/ticket.js");
  10. /* harmony import */ var _ticket_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_ticket_js__WEBPACK_IMPORTED_MODULE_0__);
  11. /***/ }),
  12. /***/ "../LaClicBundle/SovBundle/Resources/assets/app/admin/ticket/ticket.js":
  13. /*!*****************************************************************************!*\
  14. !*** ../LaClicBundle/SovBundle/Resources/assets/app/admin/ticket/ticket.js ***!
  15. \*****************************************************************************/
  16. /***/ (() => {
  17. jQuery(document).ready(function () {
  18. $('.ticket-status').on("change", function () {
  19. $.ajax({
  20. url: $('#ticketStatusForm').prop('action'),
  21. method: "POST",
  22. data: $('#ticketStatusForm').serialize(),
  23. dataType: "json",
  24. success: function success(data) {
  25. if (data.success) {
  26. SovNotification.add('success', 'Le status a bien été mise à jour.');
  27. } else {
  28. SovNotification.add('danger', 'Une erreur est survenue.');
  29. }
  30. }
  31. });
  32. });
  33. });
  34. /***/ })
  35. },
  36. /******/ __webpack_require__ => { // webpackRuntimeModules
  37. /******/ "use strict";
  38. /******/
  39. /******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
  40. /******/ var __webpack_exports__ = (__webpack_exec__("../LaClicBundle/SovBundle/Resources/assets/app/admin/ticket/app.ticket.js"));
  41. /******/ }
  42. ]);
  43. //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi4vTGFDbGljQnVuZGxlL1NvdkJ1bmRsZS9SZXNvdXJjZXMvYXNzZXRzL2FwcC9hZG1pbi90aWNrZXQvdGlja2V0LmpzIl0sIm5hbWVzIjpbImpRdWVyeSIsImRvY3VtZW50IiwicmVhZHkiLCIkIiwib24iLCJhamF4IiwidXJsIiwicHJvcCIsIm1ldGhvZCIsImRhdGEiLCJzZXJpYWxpemUiLCJkYXRhVHlwZSIsInN1Y2Nlc3MiLCJTb3ZOb3RpZmljYXRpb24iLCJhZGQiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQUEsTUFBTSxDQUFDQyxRQUFELENBQU4sQ0FBaUJDLEtBQWpCLENBQXVCLFlBQVk7QUFDL0JDLEdBQUMsQ0FBQyxnQkFBRCxDQUFELENBQW9CQyxFQUFwQixDQUF1QixRQUF2QixFQUFpQyxZQUFZO0FBQ3pDRCxLQUFDLENBQUNFLElBQUYsQ0FBTztBQUNIQyxTQUFHLEVBQUVILENBQUMsQ0FBQyxtQkFBRCxDQUFELENBQXVCSSxJQUF2QixDQUE0QixRQUE1QixDQURGO0FBRUhDLFlBQU0sRUFBRSxNQUZMO0FBR0hDLFVBQUksRUFBRU4sQ0FBQyxDQUFDLG1CQUFELENBQUQsQ0FBdUJPLFNBQXZCLEVBSEg7QUFJSEMsY0FBUSxFQUFFLE1BSlA7QUFLSEMsYUFBTyxFQUFFLGlCQUFVSCxJQUFWLEVBQWdCO0FBQ3JCLFlBQUlBLElBQUksQ0FBQ0csT0FBVCxFQUFrQjtBQUNkQyx5QkFBZSxDQUFDQyxHQUFoQixDQUFvQixTQUFwQixFQUErQixtQ0FBL0I7QUFDSCxTQUZELE1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