Category: jquery

datepicker is not a function bootstrap-datepicker Symfony, webpack

I am stuck with following issue: I have installed bootstrap-datepicker : “dependencies”: { “bootstrap”: “^4.4.1”, “bootstrap-datepicker”: “^1.9.0”, “fontawesome”: “^5.6.3”, “jquery”: “3.4.1”, “popper”: “^1.0.1” } My webpack.config: .addEntry(‘app’, [‘./assets/css/global.scss’, ‘./assets/js/app.js’ ]) .addEntry(‘datepicker’, [ ‘./assets/js/datepicker.js’ ]) datepicker.js : // js require(‘bootstrap-datepicker’); require(‘bootstrap-datepicker/js/locales/bootstrap-datepicker.fr’);…

Uncaught TypeError: Cannot set property ‘el’ of undefined on fullcalendar.js:4368

I have a calendar application where when I add a new item on the calendar on this line of code: $this.$blockCalendar.fullCalendar(‘renderEvent’, { title: resources+”S x “+capacity+”C = “+(capacity*resources), start: start, end: end, allDay: false }, true); $this.$modal.modal(‘hide’); This is the…

How can I process a form treatment in background and display a message to the user on submit in Symfony 4 (PHP)

I have a form which has an execution time of about 10 minutes. I want to display a message to the user on submit while the execution as been done in background to avoid the user to wait for it…

Display a switch by a flag

I need to display a switch if a flag in my database is setted to a positive value. <div class=”form-group m-form__group row vertical-padding10″> <label class=”col-form-label col-lg-2 col-sm-12″>Switch</label> <input id=”switch” name=”switch” data-switch=”true” data-size=”small” data-on-color=”success” type=”checkbox” checked> </div> How can I execute…