This website works better with JavaScript.
首頁
探索
說明
登入
Sugoimusic
/
Frontend
關註
2
收藏
0
複製
1
程式碼
問題管理
0
合併請求
0
版本發佈
0
Wiki
Activity
瀏覽代碼
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 年之前
committed by
Tomochin
父節點
b07242e4ad
當前提交
f95ca0d569
共有
2 個文件被更改
,包括
5 次插入
和
1 次删除
分割檢視
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
查看文件
@@ -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
查看文件
@@ -96,6 +96,10 @@ div.collage_image {
width: 20%;
}
[toggle-target] {
cursor: pointer;
}
button, input[type=button], input[type=submit] {
cursor: pointer;
background: #fff;
Write
Preview
Loading…
取消
儲存