From: Przemyslaw Ciezkowski Date: Fri, 8 Mar 2013 15:49:53 +0000 (+0100) Subject: Move tokentextarea demo to external page. X-Git-Tag: accepted/tizen_2.1/20130425.023924~7^2~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8d2fd0c90a6540037be4d1a3e577611642fc68e5;p=platform%2Fframework%2Fweb%2Fweb-ui-fw.git Move tokentextarea demo to external page. Change-Id: Ie92c45c82085db877510968bc955a5665a0390c0 --- diff --git a/demos/tizen-winsets/index.html b/demos/tizen-winsets/index.html index f2633f2..33d0f0a 100644 --- a/demos/tizen-winsets/index.html +++ b/demos/tizen-winsets/index.html @@ -45,7 +45,7 @@
  • Slider
  • Segment Control
  • Group Control(new segment)
  • -
  • Token Text Area
  • +
  • Token Text Area
  • Page Layout
  • Naviframe
  • @@ -106,80 +106,6 @@ -
    -
    -

    Token Text Area

    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -

    Address Book

    -
    - -
    -
    - Cancel -
    -
    -
    - @@ -189,7 +115,6 @@ - diff --git a/demos/tizen-winsets/widgets/tokentextarea-demo.js b/demos/tizen-winsets/widgets/tokentextarea/tokentextarea-demo.js similarity index 68% rename from demos/tizen-winsets/widgets/tokentextarea-demo.js rename to demos/tizen-winsets/widgets/tokentextarea/tokentextarea-demo.js index 4cf7a73..d4f070f 100644 --- a/demos/tizen-winsets/widgets/tokentextarea-demo.js +++ b/demos/tizen-winsets/widgets/tokentextarea/tokentextarea-demo.js @@ -1,61 +1,61 @@ ( function ( $, window ) { - $( document ).ready( function () { - $( "#MBTaddItemTest" ).click( function () { + $(document).one("pagecreate", "#tokentextarea", function () { + $( "#MBTaddItemTest" ).on( "click", function () { $( ":jqmData(role='tokentextarea')" ).tokentextarea( "add", "additem" ); }); - $( "#MBTremoveItemTest" ).click( function () { + $( "#MBTremoveItemTest" ).on( "click", function () { $( ":jqmData(role='tokentextarea')" ).tokentextarea( "remove", 0 ); }); - $( "#MBTinputTextTest" ).click( function () { + $( "#MBTinputTextTest" ).on( "click", function () { $( ":jqmData(role='tokentextarea')" ).tokentextarea( "inputText", "Hello~~~" ); }); - $( "#MBTgetInputTextTest" ).click( function () { + $( "#MBTgetInputTextTest" ).on( "click", function () { var input = $( ":jqmData(role='tokentextarea')" ).tokentextarea( "inputText" ); window.alert( "input String : " + input ); }); - $( "#MBTremoveAllItemTest" ).click( function () { + $( "#MBTremoveAllItemTest" ).on( "click", function () { $( ":jqmData(role='tokentextarea')" ).tokentextarea( "remove" ); $( ":jqmData(role='tokentextarea')" ).parents( ".ui-scrollview-view" ).parent().scrollview( "scrollTo", 0, 0 ); }); - $( "#MBTgetSelectedItemTest" ).click( function () { + $( "#MBTgetSelectedItemTest" ).on( "click", function () { var content = $( ":jqmData(role='tokentextarea')" ).tokentextarea( "select" ); window.alert( "Select content : " + content ); }); - $( "#MBTselectItemTest" ).click( function () { + $( "#MBTselectItemTest" ).on( "click", function () { $( ":jqmData(role='tokentextarea')" ).tokentextarea( "select", 0 ); }); - $( "#MBTlengthTest" ).click( function () { + $( "#MBTlengthTest" ).on( "click", function () { var length = $( ":jqmData(role='tokentextarea')" ).tokentextarea( "length" ); window.alert( "length : " + length ); }); - $( "#MBTfocusInTest" ).click( function () { + $( "#MBTfocusInTest" ).on( "click", function () { $( ":jqmData(role='tokentextarea')" ).tokentextarea( "focusIn", 0 ); $( ":jqmData(role='tokentextarea')" ).parents( ".ui-scrollview-view" ).parent().scrollview( "scrollTo", 0, 0 ); }); - $( "#MBTfocusOutTest" ).click( function () { + $( "#MBTfocusOutTest" ).on( "click", function () { $( ":jqmData(role='tokentextarea')" ).tokentextarea( "focusOut", 0 ); $( ":jqmData(role='tokentextarea')" ).parents( ".ui-scrollview-view" ).parent().scrollview( "scrollTo", 0, 0 ); }); - $( "#MBTdestroyTest" ).click( function () { + $( "#MBTdestroyTest" ).on( "click", function () { $( ":jqmData(role='tokentextarea')" ).tokentextarea( "destroy" ); }); - $( "#contentList a" ).click( function () { + $( "#contentList a" ).on( "click", function () { var arg = $( this ).text(); $( ":jqmData(role='tokentextarea')" ).tokentextarea( "add", arg ); }); - $( "#cancelBtn" ).click( function () { + $( "#cancelBtn" ).on( "click", function () { $.mobile.changePage( "#tokentextarea", { transition: "reverse slide", reverse: false, diff --git a/demos/tizen-winsets/widgets/tokentextarea/tokentextarea.html b/demos/tizen-winsets/widgets/tokentextarea/tokentextarea.html new file mode 100644 index 0000000..b34bf84 --- /dev/null +++ b/demos/tizen-winsets/widgets/tokentextarea/tokentextarea.html @@ -0,0 +1,98 @@ + + + + + + + + + + + + + Tizen UI - Tokentextarea + + + + + + + +
    +
    +

    Token Text Area

    +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    +

    Address Book

    +
    + +
    +
    + Cancel +
    +
    +
    + +