format / style tweaks

This commit is contained in:
James Campos 2010-10-20 02:59:21 -07:00
parent fdd76b205a
commit 60d988d568
2 changed files with 9 additions and 7 deletions

View File

@ -22,15 +22,15 @@ config =
AEOS = AEOS =
init: -> init: ->
#x-browser #x-browser
if typeof GM_deleteValue == 'undefined' if typeof GM_deleteValue is 'undefined'
window.GM_setValue = (name, value) -> window.GM_setValue = (name, value) ->
value = (typeof value)[0] + value value = (typeof value)[0] + value
localStorage.setItem name, value localStorage.setItem name, value
window.GM_getValue = (name, defaultValue) -> window.GM_getValue = (name, defaultValue) ->
if not value = localStorage.getItem name unless value = localStorage.getItem name
return defaultValue return defaultValue
type = value[0] type = value[0]
value = value.substring(1) value = value.substring 1
switch type switch type
when 'b' when 'b'
return value == 'true' return value == 'true'
@ -52,7 +52,8 @@ AEOS =
div.dialog > div.move { div.dialog > div.move {
cursor: move; cursor: move;
} }
div.dialog label, div.dialog a { div.dialog label,
div.dialog a {
cursor: pointer; cursor: pointer;
} }
' '
@ -60,8 +61,8 @@ AEOS =
#dialog creation #dialog creation
makeDialog: (id, position) -> makeDialog: (id, position) ->
dialog = document.createElement 'div' dialog = document.createElement 'div'
dialog.id = id
dialog.className = 'reply dialog' dialog.className = 'reply dialog'
dialog.id = id
switch position switch position
when 'topleft' when 'topleft'

View File

@ -54,7 +54,8 @@
div.dialog > div.move {\ div.dialog > div.move {\
cursor: move;\ cursor: move;\
}\ }\
div.dialog label, div.dialog a {\ div.dialog label,\
div.dialog a {\
cursor: pointer;\ cursor: pointer;\
}\ }\
'); ');
@ -62,8 +63,8 @@
makeDialog: function(id, position) { makeDialog: function(id, position) {
var dialog, left, top; var dialog, left, top;
dialog = document.createElement('div'); dialog = document.createElement('div');
dialog.id = id;
dialog.className = 'reply dialog'; dialog.className = 'reply dialog';
dialog.id = id;
switch (position) { switch (position) {
case 'topleft': case 'topleft':
left = '0px'; left = '0px';