Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F5493027
clients.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Sep 29, 9:06 PM
Size
1 KB
Mime Type
text/plain
Expires
Thu, Oct 1, 9:06 PM (1 d, 5 h)
Engine
blob
Format
Raw Data
Handle
453087
Attached To
rARCHIVING archiving
clients.js
View Options
$
(
document
).
ready
(
function
()
{
if
(
$
(
'#select-files'
).
size
()
>
0
)
{
$
(
'#file-selector'
).
hide
();
$
(
'#select-files'
).
click
(
function
()
{
$
(
'#file-selector'
).
show
();
});
}
});
$
(
document
).
ready
(
function
()
{
if
(
$
(
'#file-submitter'
).
size
()
>
0
)
{
$
(
"#file-tree"
).
on
(
"select_node.jstree"
,
function
(
evt
,
data
)
{
add_input
(
data
.
node
.
id
);
});
$
(
"#file-tree"
).
on
(
"deselect_node.jstree"
,
function
(
evt
,
data
)
{
remove_input
(
data
.
node
.
id
);
});
}
if
(
$
(
'#invitation_user_id'
).
size
()
>
0
)
{
$
(
'#invitation_user_id'
).
chosen
();
}
});
function
add_input
(
id
)
{
$
(
'#file-submitter'
).
append
(
'<input type="hidden" name="files[]" multiple="multiple" value="'
+
id
+
'" id="js-file-id-'
+
id
+
'" class="js-file-input"/>'
);
if
(
$
(
'.js-file-input'
).
size
()
>
0
&&
$
(
'#file-submitter > input[type="submit"]'
).
attr
(
'disabled'
)
==
'disabled'
)
{
$
(
'#file-submitter > input[type="submit"]'
).
attr
(
'disabled'
,
false
);
}
}
function
remove_input
(
id
)
{
$
(
'#js-file-id-'
+
id
).
remove
();
if
(
$
(
'.js-file-input'
).
size
()
==
0
)
{
$
(
'#file-submitter > input[type="submit"]'
).
attr
(
'disabled'
,
true
);
}
}
Event Timeline
Log In to Comment