Repaired dragdrop style on behavior
authorTan.Shiyou <shiyoux.tan@intel.com>
Fri, 7 Jun 2013 13:45:29 +0000 (21:45 +0800)
committerwanmingx.lin <wanmingx.lin@intel.com>
Sat, 8 Jun 2013 06:50:21 +0000 (14:50 +0800)
Signed-off-by: Tan.Shiyou <shiyoux.tan@intel.com>
tests/DragandDrop/index.html
tests/DragandDrop/js/main.js

index fe722e3..d48c208 100644 (file)
@@ -38,6 +38,30 @@ Authors:
     <script src="../../js/thirdparty/jquery.mobile.js"></script>
     <script src="../../js/tests.js"></script>
     <script src="js/main.js"></script>
+    <style type="text/css">
+        #content ul li{
+            padding: 0;
+            margin: 20px 30px 0;
+            border: 0;
+            box-shadow: 0px 3px 5px #8a8c8e;
+            border-radius:15px;
+        }
+        #content ul li h2{
+            background: -webkit-gradient(linear, 0 0, 0 100%, from(#5393c5), to(#2468a2));
+            color: #fff;
+            margin: 0;
+            height: 54px;
+            line-height: 54px;
+            border-radius: 15px 15px 0 0;
+            padding-left: 30px;
+        }
+        #content ul li .btn{
+            background: #fffef9;
+            padding: 5px 0;
+            border-radius: 0 0 15px 15px;
+            text-align: center;
+        }
+    </style>
   </head>
   <body>
     <div data-role="page" id="main">
@@ -46,10 +70,12 @@ Authors:
       </div>
       <div id="content">
         <ul data-role="listview">
-          <li>DragDrop Install</li>
           <li>
-            <div data-role="button" data-theme="a" data-inline="true" id="install">Install</div>
-            <div data-role="button" data-theme="a" data-inline="true" id="launch1">Launch</div>
+            <h2>ClipboardApplication Install</h2>
+            <div class="btn">
+              <a data-role="button" data-theme="a" data-inline="true" id="install">Install</a>
+              <a data-role="button" data-theme="a" data-inline="true" id="launch1">Launch</a>
+            </div>
           </li>
         </ul>
       </div>
index 1bd2259..87b27af 100644 (file)
@@ -32,6 +32,7 @@ $(document).delegate("#main", "pageinit", function() {
     } catch (e) {
         alert("Exception: " + e.message);
     }
+    DisablePassButton();
     packagePre();
 });
 
@@ -103,7 +104,7 @@ function launch() {
     function onError(err) {
         alert("launch failed : " + err.message);
     }
-
+    EnablePassButton();
     try {
         tizen.application.launch("bhdragdrop.DragDrop", onSuccess, onError);
     } catch (exc) {