Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F1336731
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
Wed, Dec 10, 11:51 PM
Size
1 KB
Mime Type
text/plain
Expires
Fri, Dec 12, 11:51 PM (22 h, 5 m)
Engine
blob
Format
Raw Data
Handle
311432
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