jquery - Type Error: c is not a constructor/c.widget is not a function -


i trying jquery ui dialogs working on drupal site. after checking web console, found getting error:

$(...).dialog not function

i did researching (aka. googling) , found have been because didn't add necessary js files drupal page. added jquery.ui.dialog.min.js , of dependencies. however, getting the:

type errors: c not constructor , c.widget not function.

since jquery.ui.widget.min.js doesn't depend on anything, not sure do...

also haven't found conclusive answers these errors...

edit: js files added (in order):

jquery.ui.widget.min.js jquery.ui.dialog.min.js jquery.ui.button.min.js jquery.ui.draggable.min.js jquery.ui.mouse.min.js jquery.ui.position.min.js jquery.ui.resizable.min.js my_module.js 

figured out. added:

drupal_add_library('system', 'ui'); 

instead of each script separately.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -