Tizenwinset: popup script has been removed
authorhjnim.kim <hjnim.kim@samsung.com>
Sat, 6 Apr 2013 06:08:49 +0000 (15:08 +0900)
committerYoumin Ha <youmin.ha@samsung.com>
Wed, 10 Apr 2013 14:50:39 +0000 (23:50 +0900)
popup javascript has been removed in popup sample
N_SE-32424

Change-Id: I7829a81427d2d0ea9210508ddb970a7bb9e840f7

demos/tizen-winsets/widgets/popupwindow/popup.html
demos/tizen-winsets/widgets/popupwindow/popupwindow.js

index dbf3579..27acf9a 100644 (file)
                        </div>
                        <div class="ui-popup-button-bg">
                                <a data-role="button" data-rel="back" data-inline="true">OK</a>
-                               <a data-role="button" id="btn_textbox_popup_cancel" data-rel="back" data-inline="true">Cancel</a>
+                               <a data-role="button" id="btn_textbox_popup_cancel" data-inline="true">Cancel</a>
                        </div>
                </div>
 
                </div>
 
        </div> <!-- /content -->
-
+       <script src="popupwindow.js"></script>
        <div data-role="footer">
        </div>
-       <script src="popupwindow.js"></script>
 </div> <!-- /page -->
 
 </body>
index b7d3e81..0e33b0e 100644 (file)
@@ -1,9 +1,6 @@
-$( 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());
-       });
-
+$( document ).one( "pageinit", "#popupwindow-demo", function () {
        $("#btn_textbox_popup_cancel").on("vclick", function ( ev ) {
                $("#textbox_popup").find("input").val("");
+               $("#textbox_popup").popup("close");
        });
 });