Tizen-winset: list vi index guide textbox has been removed
authorhjnim.kim <hjnim.kim@samsung.com>
Mon, 18 Feb 2013 06:56:12 +0000 (15:56 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Tue, 19 Feb 2013 07:58:44 +0000 (16:58 +0900)
list vi index guide textbox has been removed
(it causes confusion)
N_SE-25443

Change-Id: Ib9ad2e67383e9b30bb7ecfa7debb3d21c5edfd5a

demos/tizen-winsets/widgets/list/list-vi.html

index 6a0c87d..fca581e 100644 (file)
@@ -1,30 +1,16 @@
 <div data-role="page" data-add-back-btn="true">
        <script type="text/javascript">
                var add = function() {
-                       var val = $("#idx").val();
-                       if( isNaN( val ) ) {
-                               alert( "invalid value" );
-                               return;
-                       }
-                       $("#listvi").listview( 'addItem', '<li>Test<div data-role="button" data-inline="true">TEST</div></li>', val );
+                       $("#listvi").listview( 'addItem', '<li>Test<div data-role="button" data-inline="true">TEST</div></li>', 0 );
                }
                var del = function() {
-                       var val = $("#idx").val();
-                       if( isNaN( val ) ) {
-                               alert( "invalid value" );
-                               return;
-                       }
-                       $("#listvi").listview( 'removeItem' , val );
+                       $("#listvi").listview( 'removeItem' , 0 );
                }
        </script>
        <div data-role="header" data-position="fixed">
                <h1>List vi</h1>
        </div>
        <div class="content" data-role="content" data-scroll="y">
-               <div>
-                       Only number in textbox, list index start at 0(zero)
-               </div>
-               <input type="number" value="0" id="idx" min="0" />
                <div data-role="button" onclick="add()" data-inline="true">Add</div>
                <div data-role="button" onclick="del()" data-inline="true">Del</div>
                <ul id="listvi" data-role="listview">