-$( document ).one( "pagecreate", "#popupwindow-demo", function () {
- $('input[name="popupwindow-demo-transition-choice"]').on("change", function ( e ) {
- $("#popupContent2").popupwindow("option", "transition", $(this).attr("id").split("-").pop());
- });
-
- $("#btn_textbox_popup_cancel").on("vclick", function ( ev ) {
- $("#textbox_popup").find("input").val("");
- });
+$("#popupwindow-demo").bind("pageshow", function() {
+ $('#popupwindow-demo-transition-' + $("#popupContent2").popupwindow("option", "transition"))
+ .attr("checked", "true")
+ .checkboxradio("refresh");
+
+ $(this).find('#progressbar').progressbar('start');
+});
+
+$('input[name=popupwindow-demo-transition-choice]').bind("change", function(e) {
+ $("#popupContent2").popupwindow("option", "transition", $(this).attr("id").split("-").pop());
});
+
+
-$( document ).one( "pagecreate", "#radio-demo", function () {
- $("input[type='radio']").on( "change", function (event, ui) {
- if ( this.checked ) {
+$( "#radio-demo" ).live("pagecreate", function () {
+ $("input[type='radio']").bind( "change", function(event, ui) {
+ if( this.checked )
$( ".triggered-radio" ).text( this.id + " is selected..." );
- }
});
});