You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

adminlte-form.js 5.6KB

3 年之前
3 年之前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. (self["webpackChunk"] = self["webpackChunk"] || []).push([["adminlte-form"],{
  2. /***/ "../LaClicBundle/SovBundle/Resources/assets/app/adminlte/form/app.form.js":
  3. /*!********************************************************************************!*\
  4. !*** ../LaClicBundle/SovBundle/Resources/assets/app/adminlte/form/app.form.js ***!
  5. \********************************************************************************/
  6. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  7. "use strict";
  8. __webpack_require__.r(__webpack_exports__);
  9. /* harmony import */ var _form_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./form.js */ "../LaClicBundle/SovBundle/Resources/assets/app/adminlte/form/form.js");
  10. /* harmony import */ var _form_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_form_js__WEBPACK_IMPORTED_MODULE_0__);
  11. /* harmony import */ var _form_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./form.scss */ "../LaClicBundle/SovBundle/Resources/assets/app/adminlte/form/form.scss");
  12. /***/ }),
  13. /***/ "../LaClicBundle/SovBundle/Resources/assets/app/adminlte/form/form.js":
  14. /*!****************************************************************************!*\
  15. !*** ../LaClicBundle/SovBundle/Resources/assets/app/adminlte/form/form.js ***!
  16. \****************************************************************************/
  17. /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
  18. __webpack_require__(/*! core-js/modules/es.array.find.js */ "./node_modules/core-js/modules/es.array.find.js");
  19. function checkForm() {
  20. $('form').addClass('form-sent'); //Panel vues js
  21. if ($('form').find('.tab-pane').length) {
  22. $('form').find('.tab-pane').each(function (i, panel) {
  23. if ($(panel).find(':invalid').length) {
  24. $('#nav-params').find('.nav-item:eq(' + i + ')').addClass('has-invalid');
  25. } else {
  26. $('#nav-params').find('.nav-item:eq(' + i + ')').removeClass('has-invalid');
  27. }
  28. });
  29. }
  30. }
  31. $('button[type="submit"]').on('click', function (e) {
  32. checkForm();
  33. });
  34. /***/ }),
  35. /***/ "../LaClicBundle/SovBundle/Resources/assets/app/adminlte/form/form.scss":
  36. /*!******************************************************************************!*\
  37. !*** ../LaClicBundle/SovBundle/Resources/assets/app/adminlte/form/form.scss ***!
  38. \******************************************************************************/
  39. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  40. "use strict";
  41. __webpack_require__.r(__webpack_exports__);
  42. // extracted by mini-css-extract-plugin
  43. /***/ })
  44. },
  45. /******/ __webpack_require__ => { // webpackRuntimeModules
  46. /******/ "use strict";
  47. /******/
  48. /******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
  49. /******/ __webpack_require__.O(0, ["vendors-node_modules_core-js_internals_a-function_js-node_modules_core-js_internals_export_js","vendors-node_modules_core-js_modules_es_array_find_js"], () => (__webpack_exec__("../LaClicBundle/SovBundle/Resources/assets/app/adminlte/form/app.form.js")));
  50. /******/ var __webpack_exports__ = __webpack_require__.O();
  51. /******/ }
  52. ]);
  53. //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi4vTGFDbGljQnVuZGxlL1NvdkJ1bmRsZS9SZXNvdXJjZXMvYXNzZXRzL2FwcC9hZG1pbmx0ZS9mb3JtL2FwcC5mb3JtLmpzIiwid2VicGFjazovLy8uLi9MYUNsaWNCdW5kbGUvU292QnVuZGxlL1Jlc291cmNlcy9hc3NldHMvYXBwL2FkbWlubHRlL2Zvcm0vZm9ybS5qcyIsIndlYnBhY2s6Ly8vLi4vTGFDbGljQnVuZGxlL1NvdkJ1bmRsZS9SZXNvdXJjZXMvYXNzZXRzL2FwcC9hZG1pbmx0ZS9mb3JtL2Zvcm0uc2NzcyJdLCJuYW1lcyI6WyJjaGVja0Zvcm0iLCI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