Move publicListView to external JS
This commit is contained in:
parent
0d02caa684
commit
9bc8df3649
|
@ -1,11 +1,5 @@
|
||||||
<script type="text/javascript">
|
<script type="text/javascript" src="<?php echo OC_Helper::linkToRoute('publicListView');?>"></script>
|
||||||
<?php if ( array_key_exists('publicListView', $_) && $_['publicListView'] == true ) {
|
|
||||||
echo "var publicListView = true;";
|
|
||||||
} else {
|
|
||||||
echo "var publicListView = false;";
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</script>
|
|
||||||
<input type="hidden" name="dir" value="<?php echo $_['dir'] ?>" id="dir">
|
<input type="hidden" name="dir" value="<?php echo $_['dir'] ?>" id="dir">
|
||||||
<input type="hidden" name="downloadURL" value="<?php echo $_['downloadURL'] ?>" id="downloadURL">
|
<input type="hidden" name="downloadURL" value="<?php echo $_['downloadURL'] ?>" id="downloadURL">
|
||||||
<input type="hidden" name="filename" value="<?php echo $_['filename'] ?>" id="filename">
|
<input type="hidden" name="filename" value="<?php echo $_['filename'] ?>" id="filename">
|
||||||
|
|
Loading…
Reference in New Issue