Skip to content
Snippets Groups Projects
Commit 7549a37a authored by Guy Halse's avatar Guy Halse Committed by Tim van Dijen
Browse files

discopower module tabs don't work (#1078)

* Fix discopower tabs

* Remove duplication of search prototype
parent 55e3ad19
No related branches found
No related tags found
No related merge requests found
...@@ -7,9 +7,10 @@ $this->data['head'] = '<link rel="stylesheet" media="screen" type="text/css" hre ...@@ -7,9 +7,10 @@ $this->data['head'] = '<link rel="stylesheet" media="screen" type="text/css" hre
SimpleSAML\Module::getModuleURL('discopower/assets/css/disco.css').'" />'; SimpleSAML\Module::getModuleURL('discopower/assets/css/disco.css').'" />';
$this->data['head'] .= '<script type="text/javascript" src="'. $this->data['head'] .= '<script type="text/javascript" src="'.
SimpleSAML\Module::getModuleURL('discopower/assets/js/jquery.livesearch.js').'"></script>'; SimpleSAML\Module::getModuleURL('discopower/assets/js/jquery.livesearch.js').'"></script>'."\n";
$this->data['head'] .= '<script type="text/javascript" src="'. $this->data['head'] .= '<script type="text/javascript" src="'.
SimpleSAML\Module::getModuleURL('discopower/assets/js/quicksilver.js').'"></script>'; SimpleSAML\Module::getModuleURL('discopower/assets/js/'.$this->data['score'].'.js').'"></script>'."\n";
$this->data['head'] .= $this->data['search'];
if (!empty($this->data['faventry'])) { if (!empty($this->data['faventry'])) {
$this->data['autofocus'] = 'favouritesubmit'; $this->data['autofocus'] = 'favouritesubmit';
...@@ -129,20 +130,5 @@ foreach ($this->data['idplist'] as $tab => $slist) { ...@@ -129,20 +130,5 @@ foreach ($this->data['idplist'] as $tab => $slist) {
</div> </div>
<script type="text/javascript">
$(document).ready(function () {
<?php <?php
$i = 0;
foreach ($this->data['idplist'] as $tab => $slist) {
echo "\n".'$("#query_'.$tab.'").liveUpdate("#list_'.$tab.'")'.
(($i++ == 0) && (empty($this->data['faventry'])) ? '.focus()' : '').';';
}
?>
});
</script>
<?php
$this->data['head'] .= '<script type="text/javascript" src="'.
SimpleSAML\Module::getModuleURL('discopower/assets/js/suggest.js').'"></script>';
$this->includeAtTemplateBase('includes/footer.php'); $this->includeAtTemplateBase('includes/footer.php');
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment