mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
wip
This commit is contained in:
parent
03497e2b71
commit
cccda1bcdb
@ -2266,7 +2266,17 @@ define([
|
||||
var href = data.href || data.roHref;
|
||||
if (!data) { return void logError("No data for the file", element); }
|
||||
|
||||
if (!data.href && manager.isInSharedFolder($element.data('path'))) {
|
||||
Object.keys(files.filesData).forEach(function (file) {
|
||||
if (files.filesData[file].channel === data.channel && files.filesData[file].href && files.filesData[file].href.includes('edit')) {
|
||||
href = files.filesData[file].href;
|
||||
data.href = href;
|
||||
}
|
||||
})
|
||||
}
|
||||
var hrefData = Hash.parsePadUrl(href);
|
||||
console.log(hrefData)
|
||||
|
||||
if (hrefData.type) {
|
||||
$element.addClass('cp-border-color-'+hrefData.type);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user