From acd965f5c322e92d63a3f1d68aac81e6863ff3c2 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Sun, 5 Sep 2021 21:33:46 +1000 Subject: [PATCH] put back MoveDBox() in, accidentally deleted it --- internal/js/files_support.js | 48 ++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/internal/js/files_support.js b/internal/js/files_support.js index 7d09885..7657454 100644 --- a/internal/js/files_support.js +++ b/internal/js/files_support.js @@ -24,6 +24,54 @@ function RunAIOnSeln(person) $.ajax({ type: 'POST', data: post_data, url: '/run_ai_on', success: function(data){ window.location='/'; return false; } }) } +function MoveDBox(sps) +{ + $('#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') + dt=$('.highlight').first().attr('date') + div+=` +
+ + + ` + if( sps.length > 1 ) { + // NB: alert-primary here is a hack to get the bg the same color as the alert primary by + div+= '' + } else { + div+= '/'+sps[0]+'/' + div+= '' + } + div+=` + + + +
+
+
+ + +
+
+ ` + $('#dbox-content').html(div) + $('#dbox').modal('show') +} + function DelDBox(del_or_undel) { to_del = GetSelnAsData()