[FileManager]update FileManager(tizen_2.1)
authorji.ji <ji.ji@samsung.com>
Fri, 10 May 2013 07:44:02 +0000 (16:44 +0900)
committerji.ji <ji.ji@samsung.com>
Fri, 10 May 2013 07:44:02 +0000 (16:44 +0900)
Change-Id: I73d3bc348e15bba8460e70acfb361124e0409262

config.xml
css/style.css
js/app.js
js/app.ui.js

index 110dad0..e866411 100644 (file)
@@ -8,9 +8,7 @@
        <name>FileManager</name>
        <tizen:privilege name="http://tizen.org/privilege/content.read" />
        <tizen:privilege name="http://tizen.org/privilege/content.write" />
-       <tizen:privilege name="http://tizen.org/privilege/systeminfo" />
        <tizen:privilege name="http://tizen.org/privilege/application.launch" />
-       <tizen:privilege name="http://tizen.org/privilege/application.read" />
        <tizen:privilege name="http://tizen.org/privilege/filesystem.read" />
        <tizen:privilege name="http://tizen.org/privilege/filesystem.write" />
        <tizen:setting screen-orientation="portrait"
index 2be9239..89d984c 100644 (file)
@@ -52,7 +52,7 @@ body {
 }
 
 .selectAll {
-       padding-left: 10px;
+       padding-left: 12px;
        display: inline-block;
 }
 
index 36062d7..5662cff 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -207,6 +207,7 @@ var App = null;
                        if (clipboardLength > 0) {
                                this.clipboard.setMode(mode);
                                alert('Data saved in clipboard');
+                               this.ui.clearTabbars();
                        } else {
                                alert('Error occured. Data has not been saved in clipboard');
                        }
index cb7ced7..7eb60b0 100644 (file)
@@ -151,16 +151,16 @@ function Ui() {
                        $('#editActionBtn').on('tap', this.handleEditAction.bind(this));
 
                        // delete action
-                       $('#deleteActionBtn').on('tap', this.handleDeleteAction.bind(this));
+                       $('#deleteActionBtn').on('click', this.handleDeleteAction.bind(this));
 
                        // cancel edit
                        $('#cancelActionBtn').on('tap', this.handleCancelEditAction.bind(this));
 
                        // copy action
-                       $('#copyActionBtn').on('tap', this.handleCopyAction.bind(this));
+                       $('#copyActionBtn').on('click', this.handleCopyAction.bind(this));
 
                        // move action
-                       $('#moveActionBtn').on('tap', this.handleMoveAction.bind(this));
+                       $('#moveActionBtn').on('click', this.handleMoveAction.bind(this));
 
                        // paste action
                        $('a#pasteActionBtn').on('tap', app.pasteClipboard.bind(app));
@@ -201,6 +201,10 @@ function Ui() {
                        //$('.ui-page').css('min-height', 0);
                },
 
+               clearTabbars: function Ui_clearTabbars() {
+                       $('[data-role = "tabbar"] li > a').removeClass('ui-focus, ui-btn-active');
+               },
+
                /**
                 * Handler for node click
                 * @param {File} node
@@ -232,6 +236,7 @@ function Ui() {
                 */
                handleEditAction: function Ui_handleEditAction() {
                        this.editMode = true;
+                       this.clearTabbars();
                        $('.standardTabbar').hide();
                        $('div.editTabbar').show();
                        this.disableControlBarButtons($('div.editTabbar'), [this.EDIT_TABBAR_DELETE_ACTION, this.EDIT_TABBAR_COPY_ACTION, this.EDIT_TABBAR_MOVE_ACTION]);
@@ -243,6 +248,7 @@ function Ui() {
                 */
                handleCancelEditAction: function Ui_handleCancelEditAction() {
                        this.editMode = false;
+                       this.clearTabbars();
                        $('div.editTabbar').hide();
                        $('.standardTabbar').show();
                        this.hideEditCheckBoxes();
@@ -253,7 +259,8 @@ function Ui() {
                 */
                handleDeleteAction: function Ui_handleDeleteAction() {
                        var nodesToDelete = [],
-                               $rowElement;
+                               $rowElement,
+                               conf;
 
                        $('ul#fileList input:checkbox:checked').each(function (index) {
                                $rowElement = $(this).closest('li');
@@ -265,7 +272,10 @@ function Ui() {
                                });
                        });
 
-                       if (nodesToDelete.length > 0 && confirm('Selected nodes will be deleted. Are you sure?')) {
+                       conf = confirm('Selected nodes will be deleted. Are you sure?');
+                       this.clearTabbars();
+
+                       if (nodesToDelete.length > 0 && conf) {
                                app.deleteNodes(nodesToDelete);
                                this.scrollContentTo(0);
                                $('ul#fileList input:checkbox:checked').remove();
@@ -357,7 +367,7 @@ function Ui() {
 
                /**
                 * File comparison function using their names (case insensitive)
-                * 
+                *
                 * @param {File} x
                 * @param {File} y
                 * @returns {Number}