jquery - Simpledialog2 Uncaught TypeError: Cannot read property 'sdIntContent' of undefined -
I was working on jquery mobile and used simpledialog2 to create the dialog.
My code
& lt; Li & gt; & Lt; A href = "#" data-rel = "dialog" onclick = "return openpoint ();" Style = "font weight: normal;" & Gt; Register & lt; / A & gt; & Lt; / Li & gt; Function OpenPopup () {$ ('# Mobile-Login-Panel'). Siderealism 2 ({Auto Open: False, Re-Accuracy: Correct, Height: 'Auto', Header Text: 'Sign In', Close Header: Correct, Width: 'Auto', Headerclose: True, Empty Resource: "SomeHtml"} ); $ ("Div.ui-simpledialog-container") .appendTo ($ ("form # frmdialogin")); return false; }
Now this dialog has been opened correctly. But when turned off
$ Mobile.sdCurrentDialog.sdIntContent.find ('select') is throwing an error. Every function () { Any solution?
I The only way to recover was to use the uncompressed version of SimpleDialog2.js and make the following changes:
if (self.options.mode === 'empty') {$ .mobile SdCurrentDialog.sdIntContent.find ('Select') Each (function () {if ($ (this) .data ('basic menu') == incorrect) {$ (this) .data ('selection menu'). .remove (); $ (this) .data ('selection menu') screen. Remove (); $ (this) .data ('selectmenu'). Listbox.remove ();}})}}
to
(Self.options.mode === 'Empty') {if ($ .mobile.sdCurrentDialog) {$ .mobile.sdCurrentDialog.sdIntContent.find ('select') Each (function () {if ($ (this Data ('native menu') == incorrect) {if ($ (this) .data ('selectmenu')) {$ (this) .data ('selectmenu'). MenuPage.remove (); $ (This) .data ('selectmenu') screen.remove ();; $ (This) .data ('selectmenu') listbox.remove ().;}}})}}
Comments
Post a Comment