Only shorten when notice length exceeds max length

This commit is contained in:
Craig Andrews
2010-04-26 15:58:35 -04:00
parent 728a4961d1
commit edc6cf39a0
3 changed files with 16 additions and 13 deletions

View File

@@ -51,6 +51,7 @@ class ClientSideShortenPlugin extends Plugin
}
function onEndShowScripts($action){
$action->inlineScript('var Notice_maxContent = ' . Notice::maxContent());
if (common_logged_in()) {
$action->script('plugins/ClientSideShorten/shorten.js');
}