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()