[Mediacontent] updated Mediacontent sources tizen_2.2 2.2.1_release
authorPiotr Dabrowski <p.dabrowski2@samsung.com>
Fri, 18 Oct 2013 14:21:12 +0000 (16:21 +0200)
committerPiotr Dabrowski <p.dabrowski2@samsung.com>
Fri, 18 Oct 2013 14:21:12 +0000 (16:21 +0200)
Change-Id: I79b8a53a38338d7fc5c889f2ac550ca6daf623dc

css/style.css
js/main.js

index 955a5ee..fd5dfdb 100755 (executable)
@@ -3,7 +3,7 @@ body {
 }
 
 .storagetypeHighlight {
-       color: red !important;
+       font-weight: bold !important;
 }
 
 #items-title {
@@ -11,4 +11,4 @@ body {
 }
 #items-list li {
        min-height: 26px;
-}
\ No newline at end of file
+}
index 95f84b3..a023ea0 100755 (executable)
@@ -31,17 +31,19 @@ $(document).delegate("#main", "pageinit", function() {
 
        gStorageType = gMediaType;
 
-       $("#folder-type-all").bind("click", function() {
+       highlightStoragetype("ALL");
+
+       $("#folder-type-all").bind("vclick", function() {
                showFolderList("ALL");
                highlightStoragetype("ALL");
        });
 
-       $("#folder-type-internal").bind("click", function() {
+       $("#folder-type-internal").bind("vclick", function() {
                showFolderList("INTERNAL");
                highlightStoragetype("INTERNAL");
        });
 
-       $("#folder-type-external").bind("click", function() {
+       $("#folder-type-external").bind("vclick", function() {
                showFolderList("EXTERNAL");
                highlightStoragetype("EXTERNAL");
        });
@@ -59,7 +61,7 @@ $(document).delegate("#items", "pageinit", function() {
                }
        });
 
-       $("#items-list").delegate("li", "click", function() {
+       $("#items-list").delegate("li", "vclick", function() {
                var id = $(this).data("id");
                if (id != null) {
                        gItemId = Number(id);
@@ -139,6 +141,7 @@ function getFolders (storageType) {
 
 function onContentChange() {
        tizen.systeminfo.addPropertyValueChangeListener('STORAGE', function() {
+               $('#main [data-role="content"]').scrollview('scrollTo', 0, 0);
                getFolders(gStorageType);
        });
 }