This website works better with JavaScript.
Home
Explore
Help
Sign In
Sugoimusic
/
Frontend
Watch
2
Star
0
Fork
1
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
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 years ago
committed by
Tomochin
parent
b4e7cc0111
commit
21cc95f41b
2 changed files
with
5 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
design/views/generic/reply/staffpm.php
+4
-0
static/styles/global.css
+ 1
- 1
design/views/generic/reply/staffpm.php
View File
@@ -22,6 +22,6 @@
<input type="button" value="Preview" class="hidden button_preview_<?=$TextPrev->getID()?>" />
<input type="button" value="Preview" class="hidden button_preview_<?=$TextPrev->getID()?>" />
<input type="submit" value="Send message" />
<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>
</form>
</div>
</div>
+ 4
- 0
static/styles/global.css
View File
@@ -96,6 +96,10 @@ div.collage_image {
width: 20%;
width: 20%;
}
}
[toggle-target] {
cursor: pointer;
}
button, input[type=button], input[type=submit] {
button, input[type=button], input[type=submit] {
cursor: pointer;
cursor: pointer;
background: #fff;
background: #fff;
Write
Preview
Loading…
Cancel
Save