projects
/
euphorik.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
1fcc124
)
FIX largeur de l'outil de ban
author
Greg Burri
<greg.burri@gmail.com>
Sat, 12 Jul 2008 23:06:45 +0000
(23:06 +0000)
committer
Greg Burri
<greg.burri@gmail.com>
Sat, 12 Jul 2008 23:06:45 +0000
(23:06 +0000)
js/pageMinichat.js
patch
|
blob
|
history
diff --git
a/js/pageMinichat.js
b/js/pageMinichat.js
index
c56b2ff
..
cedcf92
100755
(executable)
--- a/
js/pageMinichat.js
+++ b/
js/pageMinichat.js
@@
-79,6
+79,7
@@
PageMinichat.prototype.charger = function()
{
this.util.outilsBan = $(
'<span id="outilsBan">' +
{
this.util.outilsBan = $(
'<span id="outilsBan">' +
+ '<span class="spacer"></span>' +
'<form action=""><p><input id="raison" name="raison" type="text" size="10" maxlength="200"></input></p></form>' +
'<img id="ban" src="img/ban.gif" alt="Ban de 3 jours" />' +
'<img id="kick" src="img/kick.gif" alt="Ban de 15min" />' +
'<form action=""><p><input id="raison" name="raison" type="text" size="10" maxlength="200"></input></p></form>' +
'<img id="ban" src="img/ban.gif" alt="Ban de 3 jours" />' +
'<img id="kick" src="img/kick.gif" alt="Ban de 15min" />' +
@@
-717,7
+718,7
@@
Conversation.prototype.attacherEventsSurMessage = function(element)
thisConversation.conversations.ouvrirConversation(parseInt(idString.substring(1, racine.length - 1), 36))
return false
}
thisConversation.conversations.ouvrirConversation(parseInt(idString.substring(1, racine.length - 1), 36))
return false
}
- )
+ )
$(element).click(
function(event)
$(element).click(
function(event)
@@
-775,9
+776,10
@@
Conversation.prototype.attacherEventsSurMessage = function(element)
{
var userId = parseInt($(".id", this).text())
var pseudo = $(this)
{
var userId = parseInt($(".id", this).text())
var pseudo = $(this)
- var h = pseudo.
h
eight()
+ var h = pseudo.
outerH
eight()
var offset = pseudo.offset()
var offset = pseudo.offset()
- thisConversation.util.outilsBan.css("top", offset.top - 2).css("left", offset.left - 2).height(h < 16 ? 16 : h).width(pseudo.width() + 16 * 3 + 4 + 64).prependTo(this).show()
+ // TODO : calculer automatiquement la largeur plutôt que d'inscrire des valeurs en brut'
+ thisConversation.util.outilsBan.css("top", offset.top - 2).css("left", offset.left - 2).height(h < 16 ? 16 : h).width(pseudo.outerWidth() + 16 * 3 + 12 + 64).prependTo(this).show()
$("img", thisConversation.util.outilsBan).unbind("click")
$("#slap", thisConversation.util.outilsBan).click(
function()
$("img", thisConversation.util.outilsBan).unbind("click")
$("#slap", thisConversation.util.outilsBan).click(
function()