From aee3b11b1d44390f7d32aaf56a54bbc31aa09812 Mon Sep 17 00:00:00 2001 From: Minkyeong Kim Date: Thu, 2 May 2013 15:34:30 +0900 Subject: [PATCH] Splitview: Use jQM popup instead of window.alert(). Resolves #N_SE-37077 Change-Id: Ibf6cfe1b3bce2f3792c93ceebe0a223fafca4eb5 --- demos/tizen-winsets/widgets/splitview.html | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/demos/tizen-winsets/widgets/splitview.html b/demos/tizen-winsets/widgets/splitview.html index b9cd2bc..fcf5686 100644 --- a/demos/tizen-winsets/widgets/splitview.html +++ b/demos/tizen-winsets/widgets/splitview.html @@ -8,9 +8,9 @@ + +
+
+
+
@@ -46,15 +51,15 @@ $( "#testGetRatio" ).bind( "vclick", function () { var ratio = testSplitview.splitview( "option", "ratio" ); - window.alert( "Up : Down = \n" + ratio[ 0 ].toFixed( 2 ) + " : " + ratio[ 1 ].toFixed( 2 ) ); + $( ".splitview-popup" ).text( "Up : Down = \n" + ratio[ 0 ].toFixed( 2 ) + " : " + ratio[ 1 ].toFixed( 2 ) ); }); - $( "#testSetConents" ).bind( "vclick", function () { + $( "#testSetContents" ).bind( "vclick", function () { var element = $( "

Changed \"Up\" pane

Contents changed!!
" ); testSplitview.splitview( "pane", "#up", element ); }); - $( "#testGetConents" ).bind( "vclick", function () { + $( "#testGetContents" ).bind( "vclick", function () { var contents = "", upContents = testSplitview.splitview( "pane", "#up" ), downContents = testSplitview.splitview( "pane", "#down" ); @@ -65,7 +70,7 @@ ( ( typeof downContents === "undefined" || !downContents ) ? "" : downContents[ 0 ].outerHTML ); contents = contents.substring(0, 120) + "..." ; - window.alert( contents ); + $( ".splitview-popup" ).text( contents ); }); -- 2.7.4