Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F887883
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
Sun, Aug 10, 6:14 AM
Size
1 KB
Mime Type
text/plain
Expires
Tue, Aug 12, 6:14 AM (13 h, 13 m)
Engine
blob
Format
Raw Data
Handle
232970
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