diff --git a/war/resources/css/style.css b/war/resources/css/style.css index e03ce9a1c061454214022c162a628098de681f43..210a7ae9de4758168f3d20364aa77e0ae5b6605d 100644 --- a/war/resources/css/style.css +++ b/war/resources/css/style.css @@ -652,3 +652,17 @@ DIV.yahooTree td { position:absolute; visibility: hidden; } + +/* ========================= resizable text area ========================= */ + +TEXTAREA { + margin-bottom: 0; +} +DIV.textarea-handle { + height: 5px; + font-size: 0; + background: #EEE url(../images/textarea-handle.gif) no-repeat 50% 1px; + border: 1px solid #BABDB6; + border-top: none; + cursor: s-resize; +} \ No newline at end of file diff --git a/war/resources/images/textarea-handle.gif b/war/resources/images/textarea-handle.gif new file mode 100644 index 0000000000000000000000000000000000000000..97d5cc3f6815bbd0e7a8dd4630eb36c05ad07b7f Binary files /dev/null and b/war/resources/images/textarea-handle.gif differ diff --git a/war/resources/scripts/hudson-behavior.js b/war/resources/scripts/hudson-behavior.js index 0bf0f25161cc8e25256032106958f8516a70e47b..64ad86577632b75aa2cdba5d81bca37eb6b33ae8 100644 --- a/war/resources/scripts/hudson-behavior.js +++ b/war/resources/scripts/hudson-behavior.js @@ -239,6 +239,26 @@ var hudsonRules = { object(repetableSupport).init(e, e.firstChild, ip); }, + // resizable text area + "TEXTAREA" : function(textarea) { + var handle = document.createElement("div"); + handle.setAttribute("class","textarea-handle"); + textarea.parentNode.insertBefore(handle,textarea.nextSibling); + handle.onmousedown = function(ev) { + var offset = textarea.offsetHeight-YAHOO.util.Event.getPageY(ev); + textarea.style.opacity = 0.5; + document.onmousemove = function(ev) { + function max(a,b) { if(a