Fix errore javascriptTypeError: $(...).dialog is not a function

TypeError: $(...).dialog is not a function