mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-21 09:01:27 +00:00
check for includecontent checkbox and pass it to url
This commit is contained in:
parent
022490e461
commit
07053ca7e9
|
@ -214,12 +214,20 @@ class SeedDMS_View_Search extends SeedDMS_Bootstrap_Style {
|
|||
<div class="accordion-inner">
|
||||
<table class="table-condensed">
|
||||
<tr>
|
||||
<td><?= getMLText('content') ?></td><td><label class="checkbox inline"><input type="checkbox" name="includecontent" value="1"> <?php printMLText("include_content"); ?></label></td>
|
||||
<td><?= getMLText('content') ?></td><td><label class="checkbox inline"><input id="includecontent" type="checkbox" name="includecontent" value="1"> <?php printMLText("include_content"); ?></label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td><td><a class="btn" href="<?= $_SERVER['REQUEST_URI']."&export=1" ?>"><i class="icon-download"></i> Export</a></td>
|
||||
<td></td><td><a id="export" class="btn" href="<?= $_SERVER['REQUEST_URI']."&export=1" ?>"><i class="icon-download"></i> Export</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<script>
|
||||
$(document).ready( function() {
|
||||
$('#export').on('click', function(e) {
|
||||
e.preventDefault();
|
||||
window.location.href = $(this).attr('href')+'&includecontent='+($('#includecontent').prop('checked') ? '1' : '0');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user