Skip to content

Commit 9577a5f

Browse files
committed
Fix old ui
1 parent 99d7ef5 commit 9577a5f

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

lib/PowerIdPDisco.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,6 @@ public function handleRequest()
288288
$t->data['urlpattern'] = htmlspecialchars(HTTP::getSelfURLNoQuery());
289289
$t->data['rememberenabled'] = $this->config->getBoolean('idpdisco.enableremember', false);
290290
$t->data['rememberchecked'] = $this->config->getBoolean('idpdisco.rememberchecked', false);
291-
$t->data['jquery'] = ['core' => true, 'ui' => true];
292291
foreach (array_keys($idpList) as $tab) {
293292
if ($translator->getTag('{discopower:tabs:'.$tab.'}') === null) {
294293
$translator->includeInlineTranslation('{discopower:tabs:'.$tab.'}', $tab);

templates/disco.tpl.php

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,30 @@
11
<?php
22

33
$this->data['header'] = $this->t('selectidp');
4-
$this->data['jquery'] = ['core' => true, 'ui' => false, 'css' => false];
54

65
$this->data['head'] = '<link rel="stylesheet" media="screen" type="text/css" href="'.
76
SimpleSAML\Module::getModuleURL('discopower/assets/css/uitheme1.12.1/jquery-ui.min.css').'" />';
8-
$this->data['head'] = '<link rel="stylesheet" media="screen" type="text/css" href="'.
7+
$this->data['head'] .= '<link rel="stylesheet" media="screen" type="text/css" href="'.
98
SimpleSAML\Module::getModuleURL('discopower/assets/css/disco.css').'" />';
109

11-
$this->data['head'] .= '<script type="text/javascript" src="'.
12-
SimpleSAML\Module::getModuleURL('discopower/assets/js/jquery.livesearch.js').'"></script>'."\n";
13-
$this->data['head'] .= '<script type="text/javascript" src="'.
14-
SimpleSAML\Module::getModuleURL('discopower/assets/js/'.$this->data['score'].'.js').'"></script>'."\n";
15-
$this->data['head'] .= '<script type="text/javascript" src="'.
16-
SimpleSAML\Module::getModuleURL('discopower/assets/js/tablist.js').'"></script>'."\n";
17-
$this->data['head'] .= '<script type="text/javascript" src="'.
18-
SimpleSAML\Module::getModuleURL('discopower/assets/js/jquery-ui-1.12.1.min.js').'"></script>'."\n";
19-
2010
if (!empty($this->data['faventry'])) {
2111
$this->data['autofocus'] = 'favouritesubmit';
2212
}
2313

2414
$this->includeAtTemplateBase('includes/header.php');
2515

16+
$this->data['htmlinject']['htmlContentPost'][] = '<script type="text/javascript" src="'.
17+
SimpleSAML\Module::getModuleURL('discopower/assets/js/jquery-1.12.4.min.js').'"></script>'."\n";
18+
$this->data['htmlinject']['htmlContentPost'][] = '<script type="text/javascript" src="'.
19+
SimpleSAML\Module::getModuleURL('discopower/assets/js/jquery-ui-1.12.1.min.js').'"></script>'."\n";
20+
$this->data['htmlinject']['htmlContentPost'][] = '<script type="text/javascript" src="'.
21+
SimpleSAML\Module::getModuleURL('discopower/assets/js/jquery.livesearch.js').'"></script>'."\n";
22+
$this->data['htmlinject']['htmlContentPost'][] = '<script type="text/javascript" src="'.
23+
SimpleSAML\Module::getModuleURL('discopower/assets/js/'.$this->data['score'].'.js').'"></script>'."\n";
24+
$this->data['htmlinject']['htmlContentPost'][] = '<script type="text/javascript" src="'.
25+
SimpleSAML\Module::getModuleURL('discopower/assets/js/tablist.js').'"></script>'."\n";
26+
27+
2628
function showEntry($t, $metadata, $favourite = false)
2729
{
2830
$basequerystring = '?'.

0 commit comments

Comments
 (0)