Move some UI-related code

(imported from commit 28dc554ed91c14f8a8b4be282a211d3d50cf9873)
This commit is contained in:
Keegan McAllister
2012-10-03 15:44:07 -04:00
parent 37f8445318
commit 50d84e9ca8
4 changed files with 141 additions and 142 deletions

View File

@@ -1,3 +1,7 @@
function clear_compose_box() {
$("#zephyr_compose").find('input[type=text], textarea').val('');
}
function compose_button() {
clear_compose_box();
$('#sidebar a[href="#home"]').tab('show');