jtsage/jquery-mobile-simpledialog — pull request #64 by DemitryT (2013-02-11 22:49:08+00:00)
Title: Allow the dialog content to stay in DOM after the dialog window is closed

I found that in some use cases removing the dialog content from the DOM after close displayed some funkiness in re-opening the dialog. In my specific case, I dynamically added hidden content into the DOM and only displayed it when a dialog was opened. Then when the dialog is closed and the content was removed from the DOM, it did not show up again within the dialog. To fix this I simply added an option to the simpledailog2 method called 'removeOnClose' that allows people to keep their dialog content in the DOM after the close button is clicked. The default value is true, which will keep the default behavior of removing the content. This option has to be set to false in order to just hide the content.