datetimepicker - JQuery time picker add-on error -
I use jquery-ui-timepicker-addon on my page and I get this error:
typo: $ .widget.extend this.options = $ .widget.extend ({}, jQuery-ui.js (line 579, col 17)
I do not have the control I use:
$ ("input.dateInfo"). Datetimepicker () And here is an error Not found. The error appears when I click on the control (input field). Instead of showing a date time picker, I get the error above.
Any explanation for this error? I use required.js to load javascript libraries.
Edit later
p> I load the library using require.js path: {jQuery: 'jQuery / jquery.min', jquery_ui: 'jQuery-ui-1.11.2.custom / jQuery ui to', Jquery_ui_widget: 'jquery-picklist / jqu ery.ui.widget', jquery_ui_timepicker: 'jQuery-ui-1.11. 2.custom / jquery-ui-timepicker-add-on ', bootstrap:' bootstrap-3.0.0 / js / bootstrap.min ', bootbox:' bootstrap-3.0.0 / plugins / bootbox. Mean 'moment' moment / moment ", // Butstrap_detaim_pikar:" Bootstrap-Dettaimpikar / Bootstrap -detetmapiksr "Chinese" Chinese / Chinese-Lk3k6kmin '// some lines here} < ["Jquery": ["sugar"], "slim_skol": ["jquery"], "jquery_ui": ["jquery"], and / or> "jquery_ui_widget": [ "jQuery", "jquery_ui"], "jquery_ui_timepicker": [ "jQuery", "jquery_ui"], "bootstrap": [ "jquery_ui"], "low": [ "Jquery"], "Chini_loded ": [" Jquery "," sugar "] / some other lines here}
& Lt; Script src = "/ scripts / jquery.js" & gt; gt; & Lt; Script src = "/ scripts / jquery-ui.js" & gt; & Lt; Script src = "/ scripts / other-widgets.js" & gt; Edit: In your edit you mentioned that you are using need.js. With Require.js you need to specify the dependencies of the module for managing the load sequence and each script will be loaded asynchronously.
Now, the problem is below zero, one of your scripts depends on jquery_ui_widget, but to mention this as dependency:
Shim: { "jQuery": [ "Chinese"], "slim_scroll": [ "jQuery"], "jquery_ui": [ "jQuery"], "jquery_ui_widget": [ "jQuery", "jquery_ui"], "jquery_ui_timepicker": [ "Jquery_ui"], "jquery_ui"], "bootstrap": ["jquery_ui"], "less": ["jquery"], "sugar_loaded": ["jquery", "sugar"] // some more lines here} / code> here, I'm talking about the script jquery_ui_widget but my guess slim_scroll or jquery_ui_timepicker < / Code> or bootstrap .
Comments
Post a Comment