mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 04:15:12 +00:00
add channel_address
This commit is contained in:
parent
ddf4a154b7
commit
ed25a2c98d
2 changed files with 4 additions and 2 deletions
|
@ -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 */
|
||||
|
|
|
@ -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) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue