Commit 97e167e6a361db87ad87c84f698bb379328651e1
Committed by
GitHub
Exists in
2.9
and in
7 other branches
Merge pull request #6557 from portabilis/issue-6556
Corrige tela de calendário letivo
Showing
3 changed files
with
11 additions
and
13 deletions
Show diff stats
ieducar/intranet/educar_calendario_ano_letivo_lst.php
... | ... | @@ -17,7 +17,6 @@ class clsIndexBase extends clsBase |
17 | 17 | function Formular() |
18 | 18 | { |
19 | 19 | $this->SetTitulo($this->_instituicao . ' i-Educar - Calendários'); |
20 | - $this->addScript('calendario'); | |
21 | 20 | $this->processoAp = 620; |
22 | 21 | } |
23 | 22 | } |
... | ... | @@ -471,6 +470,12 @@ class indice extends clsListagem |
471 | 470 | |
472 | 471 | $retorno .= '</tbody> </table>'; |
473 | 472 | |
473 | + $scripts = [ | |
474 | + '/intranet/scripts/calendario.js' | |
475 | + ]; | |
476 | + | |
477 | + Portabilis_View_Helper_Application::loadJavascript($this, $scripts); | |
478 | + | |
474 | 479 | return $retorno; |
475 | 480 | } |
476 | 481 | } | ... | ... |
ieducar/intranet/scripts/calendario.js
... | ... | @@ -65,18 +65,6 @@ function updateMessagePosition() |
65 | 65 | last.style.top = (findPosY(last_td) + 2) + 'px'; |
66 | 66 | } |
67 | 67 | |
68 | -if (document.createStyleSheet) { | |
69 | - document.createStyleSheet('styles/calendario.css'); | |
70 | -} | |
71 | -else { | |
72 | - var objHead = document.getElementsByTagName('head'); | |
73 | - var objCSS = objHead[0].appendChild(document.createElement('link')); | |
74 | - | |
75 | - objCSS.rel = 'stylesheet'; | |
76 | - objCSS.href = 'styles/calendario.css'; | |
77 | - objCSS.type = 'text/css'; | |
78 | -} | |
79 | - | |
80 | 68 | var cX = 0; |
81 | 69 | var cY = 0; |
82 | 70 | ... | ... |
ieducar/intranet/styles/custom.css