demo: remove unused codes
authorMinkyu Kang <mk7.kang@samsung.com>
Tue, 5 Feb 2013 10:08:35 +0000 (19:08 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Thu, 7 Feb 2013 05:53:01 +0000 (14:53 +0900)
Change-Id: If8b54ea54215b9ebdc743db1be4e692f67374a92

demos/tizen-winsets/main.js

index 9be4d69..0d238f0 100644 (file)
@@ -1,51 +1,4 @@
 $( document ).bind("pagecreate", function () {
-       /* Color widget demo */
-       $("input[type='checkbox'][data-widget-type-list]").bind("change", function() {
-               var ls = $( this ).attr("data-widget-type-list").split(","),
-                       page = $( this ).closest(":jqmData(role='page')"),
-                       disabled = $( this ).is(":checked");
-
-               $.each(ls, function( idx, widgetType ) {
-                       var ar = widgetType.split("-");
-
-                       if ( ar.length === 2 ) {
-                               page.find(":" + widgetType)[ar[1]]( "option", "disabled", disabled );
-                       }
-               });
-       });
-
-       $('#scroller-demo').bind('pageshow', function ( e ) {
-               $page = $( e.target );
-               /*
-                * many options cannot be set without subclassing since they're
-                * used in the _create method - it seems as if these are for
-                * internal use only and scrollDuration is only changable by
-                * chance.
-                */
-               var $scroller2List = $('#scroller2').find('ul');
-               $scroller2List.scrollview( 'option','scrollDuration','10000' );
-
-               // only works by manipulating css
-               // the only other way is to use attribute 'scroll-method="scroll"' in html
-               $('#scroller2 .ui-scrollbar').css( 'visibility','hidden' );
-
-               /*
-                * make toggle button switch scroll bars on and off
-                */
-               var scrollBarVisible = $('#scroller2').find('.ui-scrollbar').css('visibility') === "visible";
-
-               var $toggleScrollBars = $('#toggleScrollBars');
-               $toggleScrollBars.attr( "checked", scrollBarVisible ).checkboxradio("refresh");
-
-               /* the 'label' is the thing that is clicked, not the input element */
-               var $label = $toggleScrollBars.siblings('label').attr( 'for', '#toggleScrollBars' );
-               $label.bind("click", function () {
-                       var $scrollBar = $('#scroller2').find('.ui-scrollbar');
-                       var scrollBarVisible = $scrollBar.css('visibility') === "visible";
-                       var newVisibility = scrollBarVisible ? "hidden" : "visible";
-                       $scrollBar.css( 'visibility', scrollBarVisible ? "hidden" : "visible" );
-               });
-       });
 
        $("#demo-date").bind("date-changed", function ( e, newDate ) {
                $("#selected-date1").text( newDate.toString() );
@@ -110,41 +63,6 @@ $( document ).bind("pagecreate", function () {
                $('#gallery').gallery('remove');
        });
 
-       $('#selectioninfo-demo').bind('vmouseup', function ( e ) {
-               $('#smallpopup_selectioninfo').notification( "text",
-                       $("#dayselector1").find(".ui-checkbox-on").length + " items are selected" );
-               $('#smallpopup_selectioninfo').notification('open');
-       });
-
-       $('#groupindex-demo').bind('pageshow', function () {
-               $('#groupindex').scrolllistview();
-       });
-
-       $("#showVolumeButton").bind("vclick", function ( e ) {
-               $("#myVolumeControl").volumecontrol("open");
-       });
-
-       $("#volumecontrol_setBasicTone").bind("change", function ( e ) {
-               var basicTone = !($("#volumecontrol_setBasicTone").next('label')
-                               .find(".ui-icon").hasClass("ui-icon-checkbox-on"));
-
-               if ( basicTone ) {
-                       $("#myVolumeControl").volumecontrol( "option", "basicTone", true );
-                       $("#myVolumeControl").volumecontrol( "option", "title", "Basic Tone" );
-               } else {
-                       $("#myVolumeControl").volumecontrol( "option", "basicTone", false );
-                       $("#myVolumeControl").volumecontrol( "option", "title", "Volume" );
-               }
-       });
-
-       $("#myoptionheader").bind('collapse', function () {
-               console.log('option header was collapsed');
-       });
-
-       $("#myoptionheader").bind('expand', function () {
-               console.log('option header was expanded');
-       });
-
        /* Gen list : Dummy DB load */
        $(".virtuallist_demo_page").live("pagecreate", function () {
                /* ?_=ts code for no cache mechanism */