bugfix: queetbox did not work with unlimited
This commit is contained in:
parent
a5c6ed7c26
commit
a3d245edbc
|
@ -349,7 +349,7 @@ class QvitterAction extends ApiAction
|
||||||
<script type="text/javascript" src="<?php print $qvitterpath; ?>js/lib/jquery.easing.1.3.js"></script>
|
<script type="text/javascript" src="<?php print $qvitterpath; ?>js/lib/jquery.easing.1.3.js"></script>
|
||||||
<script type="text/javascript" src="<?php print $qvitterpath; ?>js/lib/jquery.minicolors.min.js"></script>
|
<script type="text/javascript" src="<?php print $qvitterpath; ?>js/lib/jquery.minicolors.min.js"></script>
|
||||||
<script type="text/javascript" src="<?php print $qvitterpath; ?>js/dom-functions.js?v=19"></script>
|
<script type="text/javascript" src="<?php print $qvitterpath; ?>js/dom-functions.js?v=19"></script>
|
||||||
<script type="text/javascript" src="<?php print $qvitterpath; ?>js/misc-functions.js?v=12"></script>
|
<script type="text/javascript" src="<?php print $qvitterpath; ?>js/misc-functions.js?v=13"></script>
|
||||||
<script type="text/javascript" src="<?php print $qvitterpath; ?>js/ajax-functions.js?v=7"></script>
|
<script type="text/javascript" src="<?php print $qvitterpath; ?>js/ajax-functions.js?v=7"></script>
|
||||||
<script type="text/javascript" src="<?php print $qvitterpath; ?>js/lan.js?v=15"></script>
|
<script type="text/javascript" src="<?php print $qvitterpath; ?>js/lan.js?v=15"></script>
|
||||||
<script type="text/javascript" src="<?php print $qvitterpath; ?>js/qvitter.js?v=14"></script>
|
<script type="text/javascript" src="<?php print $qvitterpath; ?>js/qvitter.js?v=14"></script>
|
||||||
|
|
|
@ -452,8 +452,11 @@ function qOrAmp(stream) {
|
||||||
· · · · · · · · · · · · · */
|
· · · · · · · · · · · · · */
|
||||||
|
|
||||||
function countCharsInQueetBox(src,trgt,btn) {
|
function countCharsInQueetBox(src,trgt,btn) {
|
||||||
|
|
||||||
|
var numchars = $.trim(src).length;
|
||||||
|
|
||||||
|
// limited
|
||||||
if(window.textLimit > 0) {
|
if(window.textLimit > 0) {
|
||||||
var numchars = $.trim(src).length;
|
|
||||||
trgt.html(window.textLimit - numchars);
|
trgt.html(window.textLimit - numchars);
|
||||||
|
|
||||||
// activate/deactivare button
|
// activate/deactivare button
|
||||||
|
@ -484,6 +487,17 @@ function countCharsInQueetBox(src,trgt,btn) {
|
||||||
trgt.removeAttr('style');
|
trgt.removeAttr('style');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// unlimited
|
||||||
|
else {
|
||||||
|
if(numchars > 0) {
|
||||||
|
btn.removeClass('disabled');
|
||||||
|
btn.addClass('enabled');
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
btn.removeClass('enabled');
|
||||||
|
btn.addClass('disabled');
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user