<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"
$('#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));
//$('.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
*/
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]);
*/
handleCancelEditAction: function Ui_handleCancelEditAction() {
this.editMode = false;
+ this.clearTabbars();
$('div.editTabbar').hide();
$('.standardTabbar').show();
this.hideEditCheckBoxes();
*/
handleDeleteAction: function Ui_handleDeleteAction() {
var nodesToDelete = [],
- $rowElement;
+ $rowElement,
+ conf;
$('ul#fileList input:checkbox:checked').each(function (index) {
$rowElement = $(this).closest('li');
});
});
- 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();
/**
* File comparison function using their names (case insensitive)
- *
+ *
* @param {File} x
* @param {File} y
* @returns {Number}