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,7 +17,6 @@ class clsIndexBase extends clsBase | ||
17 | function Formular() | 17 | function Formular() |
18 | { | 18 | { |
19 | $this->SetTitulo($this->_instituicao . ' i-Educar - Calendários'); | 19 | $this->SetTitulo($this->_instituicao . ' i-Educar - Calendários'); |
20 | - $this->addScript('calendario'); | ||
21 | $this->processoAp = 620; | 20 | $this->processoAp = 620; |
22 | } | 21 | } |
23 | } | 22 | } |
@@ -471,6 +470,12 @@ class indice extends clsListagem | @@ -471,6 +470,12 @@ class indice extends clsListagem | ||
471 | 470 | ||
472 | $retorno .= '</tbody> </table>'; | 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 | return $retorno; | 479 | return $retorno; |
475 | } | 480 | } |
476 | } | 481 | } |
ieducar/intranet/scripts/calendario.js
@@ -65,18 +65,6 @@ function updateMessagePosition() | @@ -65,18 +65,6 @@ function updateMessagePosition() | ||
65 | last.style.top = (findPosY(last_td) + 2) + 'px'; | 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 | var cX = 0; | 68 | var cX = 0; |
81 | var cY = 0; | 69 | var cY = 0; |
82 | 70 |
ieducar/intranet/styles/custom.css
@@ -492,6 +492,11 @@ table.calendar .dayLastMonth, .day{ | @@ -492,6 +492,11 @@ table.calendar .dayLastMonth, .day{ | ||
492 | 492 | ||
493 | table.calendar .day{ | 493 | table.calendar .day{ |
494 | background-color: #e9f0f8 !; | 494 | background-color: #e9f0f8 !; |
495 | + cursor: pointer; | ||
496 | +} | ||
497 | + | ||
498 | +table.calendar .day:hover{ | ||
499 | + opacity: .7; | ||
495 | } | 500 | } |
496 | 501 | ||
497 | table.calendar .anotacao{ | 502 | table.calendar .anotacao{ |