mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 02:28:03 -07:00
file manager stuff
This commit is contained in:
parent
99a403a2ef
commit
9d2ebe561a
12 changed files with 419 additions and 95 deletions
|
@ -29,11 +29,16 @@ FM.ORDER_BOX_B = $('.context-menu.sort-order.tab-b');
|
|||
FM.ORDER_TAB_A = 'type_asc';
|
||||
FM.ORDER_TAB_B = 'type_asc';
|
||||
|
||||
FM.Env.RELOAD_IN_TIME = false;
|
||||
|
||||
|
||||
FM.TAB_A_CURRENT_PATH = GLOBAL.TAB_A__PATH;
|
||||
FM.TAB_B_CURRENT_PATH = GLOBAL.TAB_B_PATH;
|
||||
|
||||
FM.IMAGES = {'A':[], 'B': []};
|
||||
|
||||
FM.RELOAD_IN_TIME_SECONDS = 3;
|
||||
|
||||
FM.IMG_FILETYPES = 'png, jpg, jpeg, gif';
|
||||
|
||||
FM.SUPPORTED_ARCHIEVES = [
|
||||
|
@ -91,6 +96,7 @@ FM.showError = function(type, message) {
|
|||
setTimeout(function() {
|
||||
ref.find('.warning-message').fadeOut();
|
||||
}, FM.errorMessageTimeout);
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -98,7 +104,7 @@ FM.showError = function(type, message) {
|
|||
FM.popupClose();
|
||||
var tpl = Tpl.get('popup_alert', 'FM');
|
||||
tpl.set(':TEXT', message);
|
||||
|
||||
|
||||
FM.popupOpen(tpl.finalize());
|
||||
}
|
||||
}
|
||||
|
@ -147,6 +153,10 @@ FM.setActive = function(index, box) {
|
|||
var tab = FM.getTabLetter(box);
|
||||
$(box + ' .selected').removeClass('selected');
|
||||
$(box).find('li.dir:eq('+index+')').addClass('selected');
|
||||
|
||||
$(box + ' .active').removeClass('active');
|
||||
$(box).find('li.dir:eq('+index+')').addClass('active');
|
||||
|
||||
//$(box).find('li:eq('+index+')').addClass('selected');
|
||||
//var w_h = $(window).height() - 100;
|
||||
var w_offset = $(box).scrollTop();
|
||||
|
@ -173,6 +183,9 @@ FM.setActive = function(index, box) {
|
|||
$(box).scrollTo(w_offset + cur_elm.top - w_height/2 + cur_elm_height/2);
|
||||
|
||||
//}
|
||||
|
||||
|
||||
|
||||
|
||||
FM['CURRENT_' + tab + '_LINE'] = index;
|
||||
FM.CURRENT_TAB = box;
|
||||
|
@ -180,6 +193,21 @@ FM.setActive = function(index, box) {
|
|||
$(FM.preselectedItems[tab]).each(function(i, index) {
|
||||
$(box).find('.dir:eq(' + index + ')').addClass('selected');
|
||||
});
|
||||
|
||||
|
||||
var src = $(box).find('.dir:eq('+index+')').find('.source').val();
|
||||
src = $.parseJSON(src);
|
||||
var tab = FM.getTabLetter(FM.CURRENT_TAB);
|
||||
|
||||
if (FM.itemIsArchieve(src)) {
|
||||
if($('.menu-'+tab+' .archive.button').first().is(':visible'))
|
||||
$('.menu-'+tab+' .extract-btn').first().show();
|
||||
else
|
||||
$('.menu-'+tab+' .extract-btn.small').show();
|
||||
}
|
||||
else {
|
||||
$('.menu-'+tab+' .extract-btn').hide();
|
||||
}
|
||||
}
|
||||
|
||||
FM.setSecondInactive = function(index, box) {
|
||||
|
@ -190,7 +218,29 @@ FM.setSecondInactive = function(index, box) {
|
|||
FM.BG_TAB = box;
|
||||
}
|
||||
|
||||
FM.goBackwards = function() {
|
||||
if (FM.isPopupOpened()) {
|
||||
return;
|
||||
}
|
||||
|
||||
var tab = FM.getTabLetter(FM.CURRENT_TAB);
|
||||
var box = FM['TAB_' + tab];
|
||||
$(box).find('.dir:eq(0)').find('.source').val();
|
||||
|
||||
var src = $.parseJSON($(box).find('.dir:eq(0)').find('.source').val());
|
||||
var dir = src.full_path;
|
||||
|
||||
FM.open(dir, box);
|
||||
}
|
||||
|
||||
FM.goToTop = function() {
|
||||
if (FM.isPopupOpened()) {
|
||||
return;
|
||||
}
|
||||
if (FM.isPopupOpened()) {
|
||||
return;
|
||||
}
|
||||
|
||||
var tab = FM.getTabLetter(FM.CURRENT_TAB);
|
||||
var index = 0;
|
||||
|
||||
|
@ -198,6 +248,9 @@ FM.goToTop = function() {
|
|||
}
|
||||
|
||||
FM.goToBottom = function() {
|
||||
if (FM.isPopupOpened()) {
|
||||
return;
|
||||
}
|
||||
var tab = FM.getTabLetter(FM.CURRENT_TAB);
|
||||
var index = $(FM.CURRENT_TAB).find('.dir').length - 1;
|
||||
|
||||
|
@ -205,22 +258,35 @@ FM.goToBottom = function() {
|
|||
}
|
||||
|
||||
FM.goUp = function() {
|
||||
if (FM.isPopupOpened()) {
|
||||
return;
|
||||
}
|
||||
var tab = FM.getTabLetter(FM.CURRENT_TAB);
|
||||
var index = FM['CURRENT_' + tab + '_LINE'];
|
||||
index -= 1;
|
||||
if (index < 0) {
|
||||
/*if (index < 0) {
|
||||
index = $(FM.CURRENT_TAB).find('li.dir').length - 1;
|
||||
}*/
|
||||
if (index < 0) {
|
||||
index = 0;
|
||||
}
|
||||
|
||||
|
||||
FM.setActive(index, FM.CURRENT_TAB);
|
||||
}
|
||||
|
||||
FM.goDown = function() {
|
||||
if (FM.isPopupOpened()) {
|
||||
return;
|
||||
}
|
||||
|
||||
var tab = FM.getTabLetter(FM.CURRENT_TAB);
|
||||
var index = FM['CURRENT_' + tab + '_LINE'];
|
||||
index += 1;
|
||||
if (index > ($(FM.CURRENT_TAB).find('li.dir').length - 1)) {
|
||||
/*if (index > ($(FM.CURRENT_TAB).find('li.dir').length - 1)) {
|
||||
index = 0;
|
||||
}*/
|
||||
if (index > ($(FM.CURRENT_TAB).find('li.dir').length - 1)) {
|
||||
index = $(FM.CURRENT_TAB).find('li.dir').length - 1;
|
||||
}
|
||||
|
||||
FM.setActive(index, FM.CURRENT_TAB);
|
||||
|
@ -236,7 +302,7 @@ FM.open = function(dir, box, callback) {
|
|||
'dir': dir
|
||||
};
|
||||
App.Ajax.request('cd', params, function(reply) {
|
||||
var tab = FM.getTabLetter(FM.CURRENT_TAB);
|
||||
//var tab = FM.getTabLetter(FM.CURRENT_TAB);
|
||||
FM.preselectedItems[tab] = [];
|
||||
if (reply.result == true) {
|
||||
var html = FM.generate_listing(reply.listing, box);
|
||||
|
@ -264,19 +330,20 @@ FM.open = function(dir, box, callback) {
|
|||
}
|
||||
|
||||
FM.updateTopLevelPathBar = function(box, tab, path) {
|
||||
console.log(path);
|
||||
|
||||
var formattedPath = [];
|
||||
path = path.replace(FM.ROOT_DIR, '');
|
||||
formattedPath.push('<a href="javascript:void(0)" onClick="FM.open(\''+FM.ROOT_DIR+'\', \''+box+'\')">'+FM.ROOT_DIR+'</span>');
|
||||
|
||||
|
||||
$.each(path.split('/'), function(i, part) {
|
||||
if (part.trim() == '') {
|
||||
return;
|
||||
}
|
||||
console.log("part - " + part);
|
||||
formattedPath.push('<a href="javascript:void(0)" onClick="FM.open(\''+part+'\', \''+box+'\')">'+part+'</span>');
|
||||
});
|
||||
|
||||
$('.pwd-tab-' + tab).html(formattedPath.join('/'));
|
||||
|
||||
$('.pwd-tab-' + tab).html(formattedPath.join(' / '));
|
||||
}
|
||||
|
||||
FM.isItemFile = function(item) {
|
||||
|
@ -607,7 +674,6 @@ FM.toggleCheck = function(uid) {
|
|||
}
|
||||
|
||||
FM.fotoramaOpen = function(tab, img_index) {
|
||||
console.log('index: ' + img_index);
|
||||
|
||||
$('.fotorama').fotorama({
|
||||
nav: 'thumbs',
|
||||
|
@ -860,6 +926,9 @@ FM.toggleAllItemsSelected = function() {
|
|||
}
|
||||
|
||||
FM.selectCurrentElementAndGoToNext = function () {
|
||||
if (FM.isPopupOpened()) {
|
||||
return;
|
||||
}
|
||||
var tab = FM.getTabLetter(FM.CURRENT_TAB);
|
||||
var box = FM['TAB_' + tab];
|
||||
|
||||
|
@ -946,6 +1015,7 @@ FM.selectItem = function(item, box) {
|
|||
var src = $(item).find('.source').val();
|
||||
src = $.parseJSON(src);
|
||||
var tab = FM.getTabLetter(FM.CURRENT_TAB);
|
||||
|
||||
if (FM.itemIsArchieve(src)) {
|
||||
$('.menu-'+tab+' .extract-btn').show();
|
||||
}
|
||||
|
@ -1046,6 +1116,10 @@ FM.packItem = function() {
|
|||
|
||||
|
||||
FM.switchTab = function() {
|
||||
if (FM.isPopupOpened()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (FM.CURRENT_TAB == FM.TAB_A) {
|
||||
FM.setTabActive(FM.TAB_B);
|
||||
$(FM.TAB_B).find('.selected-inactive').removeClass('selected-inactive');
|
||||
|
@ -1154,7 +1228,12 @@ FM.renameItems = function() {
|
|||
FM.popupOpen(tpl.finalize());
|
||||
}
|
||||
|
||||
FM.isPopupOpened = function() {
|
||||
return $('#popup').length > 0 ? true : false;
|
||||
}
|
||||
|
||||
FM.popupOpen = function(html) {
|
||||
//$('#popup').flayer_close();
|
||||
$('<div>').attr('id', 'popup').html(html).flayer({
|
||||
afterStart: function(elm) {
|
||||
elm.find('input[type="text"]:first').focus();
|
||||
|
@ -1482,6 +1561,31 @@ FM.displayError = function(msg) {
|
|||
//return alert(msg);
|
||||
}
|
||||
|
||||
FM.triggerRefreshActionTrick = function() {
|
||||
// reload-in-time
|
||||
$('#reload-in-time').remove();
|
||||
FM.Env.RELOAD_IN_TIME = true;
|
||||
var tpl = Tpl.get('reload_in_time', 'FM');
|
||||
//tpl.set(':TIME_LEFT', FM.RELOAD_IN_TIME_SECONDS + 1);
|
||||
|
||||
$('body').append(tpl.finalize());
|
||||
|
||||
var ref = $('#reload-in-time').find('.reload-in-time-counter');
|
||||
|
||||
var timeleft = FM.RELOAD_IN_TIME_SECONDS;
|
||||
FM.Env.reload_in_time_interval =
|
||||
setInterval(function() {
|
||||
if (timeleft <= 0) {
|
||||
clearInterval(FM.Env.reload_in_time_interval);
|
||||
$('#reload-in-time').remove();
|
||||
FM.Env.RELOAD_IN_TIME = false;
|
||||
}
|
||||
//ref.text(timeleft);
|
||||
timeleft -= 1;
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
|
||||
FM.confirmCreateDir = function() {
|
||||
var tab = FM.getTabLetter(FM.CURRENT_TAB);
|
||||
var box = FM['TAB_' + tab];
|
||||
|
@ -1680,7 +1784,7 @@ $(document).ready(function() {
|
|||
},{
|
||||
'type': 'keydown',
|
||||
'propagate': false,
|
||||
'disable_in_input': false,
|
||||
'disable_in_input': true,
|
||||
'target': document
|
||||
});
|
||||
|
||||
|
@ -1689,35 +1793,40 @@ $(document).ready(function() {
|
|||
},{
|
||||
'type': 'keydown',
|
||||
'propagate': false,
|
||||
'disable_in_input': false,
|
||||
'disable_in_input': true,
|
||||
'target': document
|
||||
});
|
||||
|
||||
shortcut.add("Left",function() {
|
||||
FM.setTabActive(FM.TAB_A);
|
||||
if (!FM.isPopupOpened()) {
|
||||
FM.setTabActive(FM.TAB_A);
|
||||
|
||||
var tab = FM.getTabLetter(FM.CURRENT_TAB);
|
||||
if (FM['CURRENT_' + tab + '_LINE'] == -1) {
|
||||
FM.setActive(0, FM.CURRENT_TAB);
|
||||
}
|
||||
var tab = FM.getTabLetter(FM.CURRENT_TAB);
|
||||
if (FM['CURRENT_' + tab + '_LINE'] == -1) {
|
||||
FM.setActive(0, FM.CURRENT_TAB);
|
||||
}
|
||||
}
|
||||
},{
|
||||
'type': 'keydown',
|
||||
'propagate': false,
|
||||
'disable_in_input': false,
|
||||
'disable_in_input': true,
|
||||
'target': document
|
||||
});
|
||||
|
||||
shortcut.add("Right",function() {
|
||||
FM.setTabActive(FM.TAB_B);
|
||||
if (!FM.isPopupOpened()) {
|
||||
FM.setTabActive(FM.TAB_B);
|
||||
|
||||
var tab = FM.getTabLetter(FM.CURRENT_TAB);
|
||||
if (FM['CURRENT_' + tab + '_LINE'] == -1) {
|
||||
FM.setActive(0, FM.CURRENT_TAB);
|
||||
}
|
||||
}
|
||||
|
||||
var tab = FM.getTabLetter(FM.CURRENT_TAB);
|
||||
if (FM['CURRENT_' + tab + '_LINE'] == -1) {
|
||||
FM.setActive(0, FM.CURRENT_TAB);
|
||||
}
|
||||
},{
|
||||
'type': 'keydown',
|
||||
'propagate': false,
|
||||
'disable_in_input': false,
|
||||
'disable_in_input': true,
|
||||
'target': document
|
||||
});
|
||||
|
||||
|
@ -1726,7 +1835,7 @@ $(document).ready(function() {
|
|||
},{
|
||||
'type': 'keydown',
|
||||
'propagate': false,
|
||||
'disable_in_input': false,
|
||||
'disable_in_input': true,
|
||||
'target': document
|
||||
});
|
||||
|
||||
|
@ -1735,7 +1844,7 @@ $(document).ready(function() {
|
|||
},{
|
||||
'type': 'keydown',
|
||||
'propagate': false,
|
||||
'disable_in_input': false,
|
||||
'disable_in_input': true,
|
||||
'target': document
|
||||
});
|
||||
|
||||
|
@ -1744,7 +1853,7 @@ $(document).ready(function() {
|
|||
},{
|
||||
'type': 'keydown',
|
||||
'propagate': false,
|
||||
'disable_in_input': false,
|
||||
'disable_in_input': true,
|
||||
'target': document
|
||||
});
|
||||
|
||||
|
@ -1753,7 +1862,7 @@ $(document).ready(function() {
|
|||
},{
|
||||
'type': 'keydown',
|
||||
'propagate': false,
|
||||
'disable_in_input': false,
|
||||
'disable_in_input': true,
|
||||
'target': document
|
||||
});
|
||||
|
||||
|
@ -1762,7 +1871,7 @@ $(document).ready(function() {
|
|||
},{
|
||||
'type': 'keydown',
|
||||
'propagate': false,
|
||||
'disable_in_input': false,
|
||||
'disable_in_input': true,
|
||||
'target': document
|
||||
});
|
||||
|
||||
|
@ -1772,7 +1881,7 @@ $(document).ready(function() {
|
|||
},{
|
||||
'type': 'keydown',
|
||||
'propagate': false,
|
||||
'disable_in_input': false,
|
||||
'disable_in_input': true,
|
||||
'target': document
|
||||
});
|
||||
|
||||
|
@ -1800,6 +1909,115 @@ $(document).ready(function() {
|
|||
'target': document
|
||||
});
|
||||
|
||||
shortcut.add("n",function() {
|
||||
FM.createFile();
|
||||
},{
|
||||
'type': 'keydown',
|
||||
'propagate': false,
|
||||
'disable_in_input': true,
|
||||
'target': document
|
||||
});
|
||||
shortcut.add("F7",function() {
|
||||
FM.createDir();
|
||||
},{
|
||||
'type': 'keydown',
|
||||
'propagate': false,
|
||||
'disable_in_input': false,
|
||||
'target': document
|
||||
});
|
||||
shortcut.add("F8",function() {
|
||||
FM.deleteItems();
|
||||
},{
|
||||
'type': 'keydown',
|
||||
'propagate': false,
|
||||
'disable_in_input': false,
|
||||
'target': document
|
||||
});
|
||||
shortcut.add("Delete",function() {
|
||||
FM.deleteItems();
|
||||
},{
|
||||
'type': 'keydown',
|
||||
'propagate': false,
|
||||
'disable_in_input': true,
|
||||
'target': document
|
||||
});
|
||||
shortcut.add("shift+F6",function() {
|
||||
FM.renameItems();
|
||||
},{
|
||||
'type': 'keydown',
|
||||
'propagate': false,
|
||||
'disable_in_input': false,
|
||||
'target': document
|
||||
});
|
||||
shortcut.add("F2",function() {
|
||||
FM.renameItems();
|
||||
},{
|
||||
'type': 'keydown',
|
||||
'propagate': false,
|
||||
'disable_in_input': false,
|
||||
'target': document
|
||||
});
|
||||
shortcut.add("F5",function() {
|
||||
if (FM.Env.RELOAD_IN_TIME == true) {
|
||||
location.reload();
|
||||
return;
|
||||
}
|
||||
else {
|
||||
FM.copyItems();
|
||||
FM.triggerRefreshActionTrick();
|
||||
}
|
||||
},{
|
||||
'type': 'keydown',
|
||||
'propagate': false,
|
||||
'disable_in_input': false,
|
||||
'target': document
|
||||
});
|
||||
shortcut.add("a",function() {
|
||||
FM.packItem();
|
||||
},{
|
||||
'type': 'keydown',
|
||||
'propagate': false,
|
||||
'disable_in_input': true,
|
||||
'target': document
|
||||
});
|
||||
|
||||
shortcut.add("u",function() {
|
||||
/// TODO upload file FM.uploadFile();
|
||||
},{
|
||||
'type': 'keydown',
|
||||
'propagate': false,
|
||||
'disable_in_input': true,
|
||||
'target': document
|
||||
});
|
||||
|
||||
shortcut.add("d",function() {
|
||||
FM.downloadFiles();
|
||||
},{
|
||||
'type': 'keydown',
|
||||
'propagate': false,
|
||||
'disable_in_input': true,
|
||||
'target': document
|
||||
});
|
||||
shortcut.add("Backspace",function() {
|
||||
FM.goBackwards();
|
||||
},{
|
||||
'type': 'keydown',
|
||||
'propagate': false,
|
||||
'disable_in_input': true,
|
||||
'target': document
|
||||
});
|
||||
/*shortcut.add("Y",function() {
|
||||
if (FM.Env.RELOAD_IN_TIME == true) {
|
||||
location.reload();
|
||||
}
|
||||
},{
|
||||
'type': 'keydown',
|
||||
'propagate': false,
|
||||
'disable_in_input': true,
|
||||
'target': document
|
||||
});*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -62,7 +62,8 @@ App.Constants.FM_RENAME = '<?php echo __('Rename') ?>';
|
|||
App.Constants.FM_DELETE = '<?php echo __('Delete') ?>';
|
||||
App.Constants.FM_EXTRACT = '<?php echo __('Extract') ?>';
|
||||
App.Constants.FM_CREATE = '<?php echo __('Create') ?>';
|
||||
App.Constants.FM_PACK = '<?php echo __('Pack') ?>';
|
||||
App.Constants.FM_PACK = '<?php echo __('Compress') ?>';
|
||||
App.Constants.FM_PACK_BUTTON = '<?php echo __('Compress') ?>';
|
||||
App.Constants.FM_OK = '<?php echo __('OK') ?>';
|
||||
App.Constants.FM_YOU_ARE_COPYING = '<?php echo __('YOU ARE COPYING') ?>';
|
||||
App.Constants.FM_YOU_ARE_REMOVING = '<?php echo __('YOU ARE REMOVING') ?>';
|
||||
|
@ -70,12 +71,12 @@ App.Constants.FM_YOU_ARE_REMOVING = '<?php echo __('YOU ARE REMOVI
|
|||
App.Constants.FM_CONFIRM_COPY = '<?php echo __('Are you sure you want to copy') ?>';
|
||||
App.Constants.FM_CONFIRM_DELETE = '<?php echo __('Are you sure you want to delete') ?>';
|
||||
App.Constants.FM_INTO_KEYWORD = '<?php echo __('into') ?>';
|
||||
App.Constants.FM_EXISTING_FILES_WILL_BE_DELETED = '<?php echo __('existing files will be deleted') ?>';
|
||||
App.Constants.FM_EXISTING_FILES_WILL_BE_REPLACED= '<?php echo __('existing files will be replaced') ?>';
|
||||
App.Constants.FM_ORIGINAL_NAME = '<?php echo __('Original name') ?>';
|
||||
App.Constants.FM_FILE = '<?php echo __('File') ?>';
|
||||
App.Constants.FM_ALREADY_EXISTS = '<?php echo __('already exists') ?>';
|
||||
App.Constants.FM_EXTRACT = '<?php echo __('extract archive') ?>';
|
||||
App.Constants.FM_CREATE_FILE = '<?php echo __('Create file') ?>';
|
||||
App.Constants.FM_CREATE_DIRECTORY = '<?php echo __('Create directory') ?>';
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -203,10 +203,10 @@
|
|||
},
|
||||
selectAll: function(p,o) {
|
||||
p.on('mouseover', function(){
|
||||
d.on("keydown", turnOff);
|
||||
//d.on("keydown", turnOff);
|
||||
});
|
||||
p.on('mouseout', function(){
|
||||
d.off("keydown", turnOff);
|
||||
//d.off("keydown", turnOff);
|
||||
});
|
||||
|
||||
function turnOff(e) {
|
||||
|
|
|
@ -12,6 +12,13 @@ App.Templates.html = {
|
|||
//<input id="check~!:index~!" class="ch-toggle2" type="checkbox" name="domain[]" value="~!:index3~!">\
|
||||
|
||||
FM: {
|
||||
reload_in_time: [
|
||||
//'<div id="reload-in-time" style="position: absolute; top: 0; left: 45%; background-color: yellow; padding: 50px;z-index: 999999">If you want to reload, hit key "Y" to reload.<br /> You have <strong class="reload-in-time-counter">~!:TIME_LEFT~!</strong>s. to do this.<br /> Hurry up!</div>'
|
||||
'<div id="reload-in-time" class="warning-box reload">\
|
||||
<!-- div class="close ripple" onClick="try{FM.Env.RELOAD_IN_TIME = false;}catch(e){}"></div -->\
|
||||
<div class="message-small">Hit <span>F5</span> to reload the page</div>\
|
||||
</div>'
|
||||
],
|
||||
entry_line: ['<li class="dir">\
|
||||
<span class="marker">\
|
||||
</span>\
|
||||
|
@ -50,18 +57,18 @@ App.Templates.html = {
|
|||
</div>\
|
||||
</div>'],
|
||||
popup_copy: ['<div class="confirm-box copy popup-box">\
|
||||
<div class="message">'+App.Constants.FM_CLOSE+' <span class="title">"~!:SRC_FILENAME~!"</span> '+App.Constants.FM_INTO_KEYWORD+':</div>\
|
||||
<div class="message">'+App.Constants.FM_COPY+' <span class="title">"~!:SRC_FILENAME~!"</span> '+App.Constants.FM_INTO_KEYWORD+':</div>\
|
||||
<div class="actions">\
|
||||
<input type="text" id="copy_dest" value="~!:DST_FILENAME~!" class="new-title">\
|
||||
</div>\
|
||||
<div class="message">'+App.Constants.FM_EXISTING_FILES_WILL_BE_DELETED+'</div>\
|
||||
<div class="message">'+App.Constants.FM_EXISTING_FILES_WILL_BE_REPLACED+'</div>\
|
||||
<div class="controls">\
|
||||
<p class="cancel" onClick="FM.popupClose();">'+App.Constants.FM_CANCEL+'</p>\
|
||||
<p class="ok" onClick="FM.confirmCopyItems();">'+App.Constants.FM_COPY+'</p>\
|
||||
</div>\
|
||||
</div>'],
|
||||
popup_rename: ['<div class="confirm-box rename warning">\
|
||||
<div class="message">'+App.Constants.FM_ORIGINAL_NAME+': <span class="title">"~!:FILENAME~!"</span></div>\
|
||||
<div class="message">'+App.Constants.FM_RENAME+': <span class="title">"~!:FILENAME~!"</span></div>\
|
||||
<!-- div class="warning">'+App.Constants.FM_FILE+' <span class="title">"reading.txt"</span> '+App.Constants.FM_ALREADY_EXISTS+'</div -->\
|
||||
<div class="warning warning-message"></div>\
|
||||
<div class="actions">\
|
||||
|
@ -73,12 +80,12 @@ App.Templates.html = {
|
|||
</div>\
|
||||
<div class="controls replace">\
|
||||
<p class="cancel" onClick="FM.popupClose();">'+App.Constants.FM_CANCEL+'</p>\
|
||||
<p class="ok" onClick="FM.confirmRename();">'+App.Constants.FM_Rename+'</p>\
|
||||
<p class="ok" onClick="FM.confirmRename();">'+App.Constants.FM_RENAME+'</p>\
|
||||
</div>\
|
||||
</div>'],
|
||||
|
||||
popup_pack: ['<div class="confirm-box pack warning">\
|
||||
<div class="message">'+App.Constants.FM_PACK+' <span class="title">"~!:FILENAME~!"</span> '+App.Constants.FM_INTO_KEYWORD+':</div>\
|
||||
<div class="message">'+App.Constants.FM_PACK+' <span class="title">"~!:FILENAME~!"</span></div>\
|
||||
<div class="actions">\
|
||||
<input type="text" id="pack-destination" class="new-title" value="~!:DST_DIRNAME~!">\
|
||||
</div>\
|
||||
|
@ -88,7 +95,7 @@ App.Templates.html = {
|
|||
</div -->\
|
||||
<div class="controls">\
|
||||
<p class="cancel" onClick="FM.popupClose();">'+App.Constants.FM_CANCEL+'</p>\
|
||||
<p class="ok" onClick="FM.confirmPackItem();">'+App.Constants.FM_PACK+'</p>\
|
||||
<p class="ok" onClick="FM.confirmPackItem();">'+App.Constants.FM_PACK_BUTTON+'</p>\
|
||||
</div>\
|
||||
</div>'],
|
||||
|
||||
|
@ -121,7 +128,7 @@ App.Templates.html = {
|
|||
</div>\
|
||||
</div>'],
|
||||
popup_create_dir: ['<div class="confirm-box rename warning">\
|
||||
<div class="message">Create directory</div>\
|
||||
<div class="message">'+App.Constants.FM_CREATE_DIRECTORY+'</div>\
|
||||
<!-- div class="warning">File <span class="title">"reading.txt"</span> already exists</div -->\
|
||||
<div class="warning warning-message"></div>\
|
||||
<div class="actions">\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue