Merge branch '1196-Time-range-en-gráficas-de-módulo-dev' into 'develop'
Disabled select for not admins See merge request !722
This commit is contained in:
commit
728d471d6d
|
@ -531,4 +531,14 @@ ui_include_time_picker(true);
|
||||||
$(window).resize(function() {
|
$(window).resize(function() {
|
||||||
$("#field_list").css('height', ($(window).height() - 160) + 'px');
|
$("#field_list").css('height', ($(window).height() - 160) + 'px');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
<?php
|
||||||
|
// If the user is not an admin, not allowed to change the time range
|
||||||
|
if (!users_is_admin()) {
|
||||||
|
?>
|
||||||
|
$("#period_select").attr('disabled', 'disabled');
|
||||||
|
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue