Skip to content

Instantly share code, notes, and snippets.

@vitorpacheco
Created January 31, 2013 02:11
Show Gist options
  • Save vitorpacheco/4679355 to your computer and use it in GitHub Desktop.
Save vitorpacheco/4679355 to your computer and use it in GitHub Desktop.
<div title="Solicitar ajustes" id="comment">
<form accept-charset="utf-8" method="post" class="form label-inline" action="/view/25">
<div style="display:none;">
<input type="hidden" value="POST" name="_method">
</div>
<div class="field">
<label for="AjusteComentario">Comentário</label>
<textarea id="AjusteComentario" rows="6" cols="30" name="data[Ajuste][comentario]"></textarea>
</div>
</form>
</div>
$("#comment").dialog({
autoOpen: false,
resizable: false,
width: 400,
modal: true,
buttons: {
"OK": function() {
$( this ).dialog( "close" );
},
Cancel: function() {
$( this ).dialog( "close" );
}
},
close: function() {
}
});
$(".portlet-content:first").on("click", "#add-comentario", function(e) {
e.preventDefault();
$("#comentario-quadro").dialog("open");
});
// theme: http://jqueryui.com/themeroller/?ffDefault=arial%2Csans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=%23F0F0F0&bgTextureHeader=01_flat.png&bgImgOpacityHeader=75&borderColorHeader=%23aaaaaa&fcHeader=%23263849&iconColorHeader=%23263849&bgColorContent=%23ffffff&bgTextureContent=01_flat.png&bgImgOpacityContent=75&borderColorContent=%23aaaaaa&fcContent=%23222222&iconColorContent=%23222222&bgColorDefault=%23263849&bgTextureDefault=03_highlight_soft.png&bgImgOpacityDefault=75&borderColorDefault=%23263849&fcDefault=%23ffffff&iconColorDefault=%23ffffff&bgColorHover=%2316222C&bgTextureHover=03_highlight_soft.png&bgImgOpacityHover=75&borderColorHover=%2316222C&fcHover=%23ffffff&iconColorHover=%23ffffff&bgColorActive=%23263849&bgTextureActive=01_flat.png&bgImgOpacityActive=65&borderColorActive=%23263849&fcActive=%23ffffff&iconColorActive=%23ffffff&bgColorHighlight=%23fbf9ee&bgTextureHighlight=02_glass.png&bgImgOpacityHighlight=55&borderColorHighlight=%23fcefa1&fcHighlight=%23363636&iconColorHighlight=%232e83ff&bgColorError=%23fef1ec&bgTextureError=02_glass.png&bgImgOpacityError=95&borderColorError=%23cd0a0a&fcError=%23cd0a0a&iconColorError=%23cd0a0a&bgColorOverlay=%23aaaaaa&bgTextureOverlay=01_flat.png&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=%23aaaaaa&bgTextureShadow=01_flat.png&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment