選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

77 行
6.8KB

  1. (self["webpackChunk"] = self["webpackChunk"] || []).push([["sov-reminder"],{
  2. /***/ "../LaClicBundle/SovBundle/Resources/assets/app/admin/reminder/app.reminder.js":
  3. /*!*************************************************************************************!*\
  4. !*** ../LaClicBundle/SovBundle/Resources/assets/app/admin/reminder/app.reminder.js ***!
  5. \*************************************************************************************/
  6. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  7. "use strict";
  8. __webpack_require__.r(__webpack_exports__);
  9. /* harmony import */ var _reminder_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./reminder.js */ "../LaClicBundle/SovBundle/Resources/assets/app/admin/reminder/reminder.js");
  10. /* harmony import */ var _reminder_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_reminder_js__WEBPACK_IMPORTED_MODULE_0__);
  11. /* harmony import */ var _reminder_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./reminder.scss */ "../LaClicBundle/SovBundle/Resources/assets/app/admin/reminder/reminder.scss");
  12. /***/ }),
  13. /***/ "../LaClicBundle/SovBundle/Resources/assets/app/admin/reminder/reminder.js":
  14. /*!*********************************************************************************!*\
  15. !*** ../LaClicBundle/SovBundle/Resources/assets/app/admin/reminder/reminder.js ***!
  16. \*********************************************************************************/
  17. /***/ (() => {
  18. $(document).ready(function () {
  19. initReminder();
  20. });
  21. function initReminder() {
  22. var selectorModal = '#modal-reminder';
  23. $('.btn-reminder').click(function () {
  24. $.post($(this).attr('href'), {
  25. crudAction: $(this).data('crud-action'),
  26. crudControllerFqcn: $(this).data('crud-controller-fqcn'),
  27. entityId: $(this).data('entity-id'),
  28. id: $(this).data('id')
  29. }, function (html) {
  30. $(selectorModal).remove();
  31. $('body').append(html);
  32. $(selectorModal).modal('show');
  33. });
  34. return false;
  35. });
  36. $('.checkbox-reminder').click(function () {
  37. $.post($(this).data('url'), {
  38. id: $(this).data('id'),
  39. done: $(this).is(':checked')
  40. }, function (data) {
  41. SovNotification.add('success', 'Pense-bête mis à jour');
  42. }, 'json');
  43. });
  44. }
  45. /***/ }),
  46. /***/ "../LaClicBundle/SovBundle/Resources/assets/app/admin/reminder/reminder.scss":
  47. /*!***********************************************************************************!*\
  48. !*** ../LaClicBundle/SovBundle/Resources/assets/app/admin/reminder/reminder.scss ***!
  49. \***********************************************************************************/
  50. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  51. "use strict";
  52. __webpack_require__.r(__webpack_exports__);
  53. // extracted by mini-css-extract-plugin
  54. /***/ })
  55. },
  56. /******/ __webpack_require__ => { // webpackRuntimeModules
  57. /******/ "use strict";
  58. /******/
  59. /******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
  60. /******/ var __webpack_exports__ = (__webpack_exec__("../LaClicBundle/SovBundle/Resources/assets/app/admin/reminder/app.reminder.js"));
  61. /******/ }
  62. ]);
  63. //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi4vTGFDbGljQnVuZGxlL1NvdkJ1bmRsZS9SZXNvdXJjZXMvYXNzZXRzL2FwcC9hZG1pbi9yZW1pbmRlci9hcHAucmVtaW5kZXIuanMiLCJ3ZWJwYWNrOi8vLy4uL0xhQ2xpY0J1bmRsZS9Tb3ZCdW5kbGUvUmVzb3VyY2VzL2Fzc2V0cy9hcHAvYWRtaW4vcmVtaW5kZXIvcmVtaW5kZXIuanMiLCJ3ZWJwYWNrOi8vLy4uL0xhQ2xpY0J1bmRsZS9Tb3ZCdW5kbGUvUmVzb3VyY2VzL2Fzc2V0cy9hcHAvYWRtaW4vcmVtaW5kZXIvcmVtaW5kZXIuc2NzcyJdLCJuYW1lcyI6WyIkIiwiZG9jdW1lbnQiLCJyZWFkeSIsImluaXRSZW1pbmRl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