Merge pull request #10813 from tobiasd/20211003-lengthcounter
added length counter for postings in themes other then frio
This commit is contained in:
commit
de96b302b7
3 changed files with 17 additions and 3 deletions
|
@ -24,6 +24,11 @@ function initEditor(callback) {
|
||||||
$("a#jot-perms-icon").colorbox(colorbox_options);
|
$("a#jot-perms-icon").colorbox(colorbox_options);
|
||||||
$(".jothidden").show();
|
$(".jothidden").show();
|
||||||
|
|
||||||
|
$("#profile-jot-text").keyup(function(){
|
||||||
|
var textlen = $(this).val().length;
|
||||||
|
$('#character-counter').text(textlen);
|
||||||
|
});
|
||||||
|
|
||||||
editor = true;
|
editor = true;
|
||||||
}
|
}
|
||||||
if (typeof callback != "undefined") {
|
if (typeof callback != "undefined") {
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
<div id="profile-jot-wrapper">
|
<div id="profile-jot-wrapper">
|
||||||
<div id="profile-jot-banner-wrapper">
|
<div id="profile-jot-banner-wrapper">
|
||||||
<div id="profile-jot-desc"> </div>
|
<div id="profile-jot-desc"> </div>
|
||||||
<div id="character-counter" class="grey"></div>
|
|
||||||
</div>
|
</div>
|
||||||
<div id="profile-jot-banner-end"></div>
|
<div id="profile-jot-banner-end"></div>
|
||||||
|
|
||||||
|
@ -53,6 +52,10 @@
|
||||||
<a id="profile-nolocation" class="icon noglobe" title="{{$noloc}}" onclick="jotClearLocation();return false;"></a>
|
<a id="profile-nolocation" class="icon noglobe" title="{{$noloc}}" onclick="jotClearLocation();return false;"></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div id="post-length">
|
||||||
|
<span id="character-counter" class="grey"></span>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="profile-jot-perms" class="profile-jot-perms" style="display: {{$pvisit}};">
|
<div id="profile-jot-perms" class="profile-jot-perms" style="display: {{$pvisit}};">
|
||||||
<a href="#profile-jot-acl-wrapper" id="jot-perms-icon" class="icon {{$lockstate}}" title="{{$permset}}"></a>{{$bang}}
|
<a href="#profile-jot-acl-wrapper" id="jot-perms-icon" class="icon {{$lockstate}}" title="{{$permset}}"></a>{{$bang}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1778,8 +1778,14 @@ section.minimal {
|
||||||
padding: 0.3em;
|
padding: 0.3em;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
#post-length {
|
||||||
#profile-jot-form #jot-title, #profile-jot-form #jot-category {
|
width: 20px;
|
||||||
|
float: left;
|
||||||
|
margin-left: 15px;
|
||||||
|
margin-top: 3px;
|
||||||
|
color: #9c9c9c;
|
||||||
|
}
|
||||||
|
profile-jot-form #jot-title, #profile-jot-form #jot-category {
|
||||||
border-radius: 5px 5px 5px 5px;
|
border-radius: 5px 5px 5px 5px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
|
|
Loading…
Reference in a new issue