slight change to UI.dialog to make searching for vulnerabilities easier
This commit is contained in:
parent
6ce8bef709
commit
f3026041b4
@ -1,9 +1,9 @@
|
|||||||
UI = do ->
|
UI = do ->
|
||||||
dialog = (id, position, html) ->
|
dialog = (id, position, properties) ->
|
||||||
el = $.el 'div',
|
el = $.el 'div',
|
||||||
className: 'dialog'
|
className: 'dialog'
|
||||||
innerHTML: html
|
|
||||||
id: id
|
id: id
|
||||||
|
$.extend el, properties
|
||||||
el.style.cssText = position
|
el.style.cssText = position
|
||||||
$.get "#{id}.position", position, (item) ->
|
$.get "#{id}.position", position, (item) ->
|
||||||
el.style.cssText = item["#{id}.position"]
|
el.style.cssText = item["#{id}.position"]
|
||||||
|
|||||||
@ -4,14 +4,14 @@ ThreadStats =
|
|||||||
|
|
||||||
if Conf['Updater and Stats in Header']
|
if Conf['Updater and Stats in Header']
|
||||||
@dialog = sc = $.el 'span',
|
@dialog = sc = $.el 'span',
|
||||||
innerHTML: "<span id=post-count>0</span> / <span id=file-count>0</span>#{if Conf["Page Count in Stats"] then " / <span id=page-count>0</span>" else ""}"
|
innerHTML: "<span id=post-count>0</span> / <span id=file-count>0</span>#{if Conf['Page Count in Stats'] then ' / <span id=page-count>0</span>' else ''}"
|
||||||
id: 'thread-stats'
|
id: 'thread-stats'
|
||||||
title: 'Post Count / File Count' + (if Conf["Page Count in Stats"] then " / Page Count" else "")
|
title: 'Post Count / File Count' + (if Conf["Page Count in Stats"] then " / Page Count" else "")
|
||||||
$.ready ->
|
$.ready ->
|
||||||
Header.addShortcut sc
|
Header.addShortcut sc
|
||||||
else
|
else
|
||||||
@dialog = sc = UI.dialog 'thread-stats', 'bottom: 0px; right: 0px;',
|
@dialog = sc = UI.dialog 'thread-stats', 'bottom: 0px; right: 0px;',
|
||||||
"<div class=move title='Post Count / File Count#{if Conf["Page Count in Stats"] then " / Page Count" else ""}'><span id=post-count>0</span> / <span id=file-count>0</span>#{if Conf["Page Count in Stats"] then " / <span id=page-count>0</span>" else ""}</div>"
|
innerHTML: "<div class=move title='Post Count / File Count#{if Conf['Page Count in Stats'] then ' / Page Count' else ''}'><span id=post-count>0</span> / <span id=file-count>0</span>#{if Conf['Page Count in Stats'] then ' / <span id=page-count>0</span>' else ''}</div>"
|
||||||
$.ready =>
|
$.ready =>
|
||||||
$.add d.body, sc
|
$.add d.body, sc
|
||||||
|
|
||||||
|
|||||||
@ -10,7 +10,7 @@ ThreadUpdater =
|
|||||||
Header.addShortcut sc
|
Header.addShortcut sc
|
||||||
else
|
else
|
||||||
@dialog = sc = UI.dialog 'updater', 'bottom: 0px; left: 0px;',
|
@dialog = sc = UI.dialog 'updater', 'bottom: 0px; left: 0px;',
|
||||||
"<div class=move></div><span id=update-status></span><span id=update-timer title='Update now'></span>"
|
innerHTML: '<div class=move></div><span id=update-status></span><span id=update-timer title="Update now"></span>'
|
||||||
$.addClass doc, 'float'
|
$.addClass doc, 'float'
|
||||||
$.ready =>
|
$.ready =>
|
||||||
$.addClass doc, 'float'
|
$.addClass doc, 'float'
|
||||||
|
|||||||
@ -10,7 +10,7 @@ ThreadWatcher =
|
|||||||
className: 'disabled fa fa-eye'
|
className: 'disabled fa fa-eye'
|
||||||
|
|
||||||
@db = new DataBoard 'watchedThreads', @refresh, true
|
@db = new DataBoard 'watchedThreads', @refresh, true
|
||||||
@dialog = UI.dialog 'thread-watcher', 'top: 50px; left: 0px;', <%= importHTML('Monitoring/ThreadWatcher') %>
|
@dialog = UI.dialog 'thread-watcher', 'top: 50px; left: 0px;', innerHTML: <%= importHTML('Monitoring/ThreadWatcher') %>
|
||||||
@status = $ '#watcher-status', @dialog
|
@status = $ '#watcher-status', @dialog
|
||||||
@list = @dialog.lastElementChild
|
@list = @dialog.lastElementChild
|
||||||
|
|
||||||
|
|||||||
@ -458,7 +458,7 @@ QR =
|
|||||||
|
|
||||||
dialog: ->
|
dialog: ->
|
||||||
QR.nodes = nodes =
|
QR.nodes = nodes =
|
||||||
el: dialog = UI.dialog 'qr', 'top:0;right:0;', <%= importHTML('Features/QuickReply') %>
|
el: dialog = UI.dialog 'qr', 'top:0;right:0;', innerHTML: <%= importHTML('Features/QuickReply') %>
|
||||||
|
|
||||||
setNode = (name, query) ->
|
setNode = (name, query) ->
|
||||||
nodes[name] = $ query, dialog
|
nodes[name] = $ query, dialog
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user