Saturday, July 16, 2011

Bookmark: Good Headsets for Gaming - Open ... - Zenoss Community

";
}else{
window._jive_gui_quote_text = "";
}
initRTE();

} else {
closeCurrentCommentForm();
}
}

function previewComment() {
var taExpression = 'div#' + currentTargetID + ' textarea';
var buExpression = 'div#' + currentTargetID + ' .comment-preview-button';
var peExpression = 'div#' + currentTargetID + ' .jive-blog-comment-preview';
var comment = $$(taExpression)[0];
var button = $$(buExpression)[0];
var preview = $$(peExpression)[0];
button.value = "Previewing...";
// var html = comment.value;
var html = window.editor.get("wysiwygtext").getHTML();
// fetch a preview
Comment.previewComment(801, 1319, html, {
callback:function(data) {
preview.innerHTML = data;
button.value = "Preview";
new Effect.Appear(preview);
}
});
}


var currentComment = null;

function closeCurrentEditCommentForm(){
if(currentComment){
var container = $('comment-edit-form-' + currentComment);
Element.toggle(container);
Element.toggle('comment-body-' + currentComment);
var tempdata = window.editor.get('wysiwygtext').getHTML();
document.body.appendChild($('wysiwygtext_html_link'));
$('wysiwygtext_html_link').style.display = "none";
window.editor.get('wysiwygtext').destroy();
window.editor.clear('wysiwygtext');
var elem = $A(container.getElementsByTagName('textarea'))[0];
elem.id = "";
elem.value = tempdata;
currentComment = null;
}
}



jive.ext.x.xAddEventListener(window, "load", function(){
Event.observe($('wysiwygtext_toggle_html'), "click", function(){
window.editor.get('wysiwygtext').toggleEditorMode('wysiwygtext');
});
});

window.editor = new jive.ext.y.HashTable();

Source: http://community.zenoss.org/bookmarks/1319

taken mean girls barbecue bad teacher legend of the seeker awesome cameron diaz

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.