diff --git a/actions/qvitter.php b/actions/qvitter.php index 3e3ca8f..4d06d4d 100644 --- a/actions/qvitter.php +++ b/actions/qvitter.php @@ -349,7 +349,7 @@ class QvitterAction extends ApiAction - + diff --git a/js/misc-functions.js b/js/misc-functions.js index 875ee09..2a58da4 100644 --- a/js/misc-functions.js +++ b/js/misc-functions.js @@ -452,8 +452,11 @@ function qOrAmp(stream) { · · · · · · · · · · · · · */ function countCharsInQueetBox(src,trgt,btn) { + + var numchars = $.trim(src).length; + + // limited if(window.textLimit > 0) { - var numchars = $.trim(src).length; trgt.html(window.textLimit - numchars); // activate/deactivare button @@ -484,6 +487,17 @@ function countCharsInQueetBox(src,trgt,btn) { trgt.removeAttr('style'); } } + // unlimited + else { + if(numchars > 0) { + btn.removeClass('disabled'); + btn.addClass('enabled'); + } + else { + btn.removeClass('enabled'); + btn.addClass('disabled'); + } + } }