Przeglądaj źródła

Replace inline JS gtoggles with html attributes and some global JS

End goal is to remove all inline JS, starting with onclick
undefined
spaghetti 8 lat temu
committed by Tomochin
rodzic
commit
21cc95f41b
2 zmienionych plików z 5 dodań i 1 usunięć
  1. +1
    -1
      design/views/generic/reply/staffpm.php
  2. +4
    -0
      static/styles/global.css

+ 1
- 1
design/views/generic/reply/staffpm.php Wyświetl plik

@@ -22,6 +22,6 @@

<input type="button" value="Preview" class="hidden button_preview_<?=$TextPrev->getID()?>" />
<input type="submit" value="Send message" />
<input type="button" value="Hide" onclick="$('#compose').gtoggle(); return false;" />
<input type="button" value="Hide" toggle-target="#compose" />
</form>
</div>

+ 4
- 0
static/styles/global.css Wyświetl plik

@@ -96,6 +96,10 @@ div.collage_image {
width: 20%;
}

[toggle-target] {
cursor: pointer;
}

button, input[type=button], input[type=submit] {
cursor: pointer;
background: #fff;


Ładowanie…
Anuluj
Zapisz