demo: clear input text value with cancel button click
authorYoumin Ha <youmin.ha@samsung.com>
Sun, 20 Jan 2013 06:17:31 +0000 (15:17 +0900)
committerYoumin Ha <youmin.ha@samsung.com>
Tue, 22 Jan 2013 05:26:05 +0000 (14:26 +0900)
When the cancel button is clicked, clear all input text values.
Resolves N_SE-22002.

Change-Id: I2ccf6ad7db63f13ec7f47992c73545b7dc37b763

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

index c6832be..d7f8512 100755 (executable)
                                <h1>PopupTest<h1>
                        </div>
                        <div class="ui-popup-text">
-                                               <input type="text" size="30" />
-                                               <input type="text" size="30" />
+                               <input type="text" size="30" />
+                               <input type="text" size="30" />
+                       </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>
+                               <script>
+                               $("#btn_textbox_popup_cancel").bind("click", function ( ev ) {
+                                       $("#textbox_popup").find("input").val("");
+                               } );
+                               </script>
                        </div>
-                                       <div class="ui-popup-button-bg">
-                                               <a data-role="button" data-rel="back" data-inline="true">OK</a>
-                                               <a data-role="button" data-rel="back" data-inline="true">Cancel</a>
-                                       </div>
                </div>
 
                <div data-role="popup" id="positionWindow">