add channel_address

This commit is contained in:
Ray 2023-02-25 20:10:37 -05:00
parent ddf4a154b7
commit ed25a2c98d
2 changed files with 4 additions and 2 deletions

View file

@ -21,6 +21,7 @@ class Embedfiles extends Controller
$channel = App::get_channel();
$channel_id = $channel['channel_id'];
$channel_address = $channel['channel_address'];
$observer = get_observer_hash();
$orderby = 'is_dir desc';
@ -32,7 +33,7 @@ class Embedfiles extends Controller
//$sorted = $this->get_embed_top_folders($results);
//$sorted = $this->get_embed_sub_folders($results);
//$sorted = $this->get_embed_files($results);
json_return_and_die(['success' => $success, 'content' => $sorted]);
json_return_and_die(['success' => $success, 'address' => $channel_address, 'content' => $sorted]);
}
/* returns sorted files and folders */

View file

@ -772,10 +772,11 @@ let postSaveTimer = null;
// alert(JSON.stringify(data));
let success = data.success;
let address = data.address;
let results = data.content;
let path = results[0].display_path;
alert(baseurl);
alert(address);
if (data.success) {