From 3c4cb53f6994824b0b649d1af57119db8831f6f0 Mon Sep 17 00:00:00 2001 From: max Date: Sat, 28 Apr 2012 18:25:43 +0700 Subject: [PATCH] Auto hide new paste / clone options --- static/js/behavior.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/js/behavior.js b/static/js/behavior.js index ada717e..ad43da4 100644 --- a/static/js/behavior.js +++ b/static/js/behavior.js @@ -77,7 +77,11 @@ $('.paste-option select').live('change', function(){ /* Resize Textarea content */ $('#content').elastic(); + /* Display bottom paste option buttons when needed */ +if($('#content').height() < 600 ){ + $('.paste-option.bottom').remove(); +}; $('#content').live('keyup change', function(){ if($('#content').height() < 600 ){ $('.paste-option.down').remove();