diff --git a/templates/files.html b/templates/files.html index 4822261..ad0e74b 100644 --- a/templates/files.html +++ b/templates/files.html @@ -298,7 +298,7 @@ function GetSelnAsDiv() '" class="px-1">' + $(this).children().parent().html() + '' seln+='' } ) - return '
'+seln+'
' + return '
'+seln+'
' } function GetSelnAsData() @@ -319,10 +319,10 @@ function DelDBox(del_or_undel) { to_del = GetSelnAsData() $('#dbox-title').html(del_or_undel+' Selected File(s)') - div ='

' + del_or_undel + ' the following files?

' + div ='

' + del_or_undel + ' the following files?

' div+=GetSelnAsDiv() - div+=`
- + div+=`
+ ` div+=` + success: function(data){ window.location='/'; return false; } })" class="btn btn-outline-danger col-2">Ok
` else div+=` '/restore_files', - success: function(data){ window.location='/'; return false; } })" class="btn btn-outline-success col-lg-2">Ok + success: function(data){ window.location='/'; return false; } })" class="btn btn-outline-success col-2">Ok
` $('#dbox-content').html(div) @@ -346,23 +346,23 @@ function DelDBox(del_or_undel) function DetailsDBox() { $('#dbox-title').html('Details of Selected File(s)') - var div ='
' + var div ='
' $('.highlight').each(function( index ) { - div += "
Name:
" + $(this).attr('fname') + "
" - div += "
Date:
" + $(this).attr('pretty_date') + "
" + div += "
Name:
" + $(this).attr('fname') + "
" + div += "
Date:
" + $(this).attr('pretty_date') + "
" dir = $(this).attr('in_dir') if( dir.slice(-1) != "/" ) dir=dir.concat('/') - div += "
Dir:
" + dir + "
" - div += "
Size:
" + $(this).attr('size') + " MB
" - div += "
Hash:
" + $(this).attr('hash') + "
" - div += "
Path Type:
" + $(this).attr('path_type') + "
" + div += "
Dir:
" + dir + "
" + div += "
Size:
" + $(this).attr('size') + " MB
" + div += "
Hash:
" + $(this).attr('hash') + "
" + div += "
Path Type:
" + $(this).attr('path_type') + "
" } ) div += `

-
- +
+
` $('#dbox-content').html(div) @@ -406,10 +406,10 @@ function MoveDBox() { $('#dbox-title').html('Move Selected File(s) to new directory in Storage Path') div =` -
+

Moving the following files?

-
+ ` div+=GetSelnAsDiv() yr=$('.highlight').first().attr('yr') @@ -421,9 +421,10 @@ function MoveDBox() ` sps={{StoragePathNames()|safe}} if( sps.length > 1 ) { - div+= '' for(p of sps) { - div+= '' + div+= '' } div+= '' } else { @@ -440,9 +441,9 @@ function MoveDBox()

-
- - +
+ +
`