title fixups
This commit is contained in:
parent
a69ecb3413
commit
41bb47ca1b
|
@ -7,7 +7,6 @@ var textlen = 0;
|
||||||
function initEditor(cb){
|
function initEditor(cb){
|
||||||
if (editor==false){
|
if (editor==false){
|
||||||
$("#profile-jot-text-loading").show();
|
$("#profile-jot-text-loading").show();
|
||||||
$("#jot-title-desc").show();
|
|
||||||
tinyMCE.init({
|
tinyMCE.init({
|
||||||
theme : "advanced",
|
theme : "advanced",
|
||||||
mode : "specific_textareas",
|
mode : "specific_textareas",
|
||||||
|
@ -196,14 +195,6 @@ function enableOnUser(){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function jotTitle() {
|
|
||||||
reply = prompt("$title", $('#jot-title').val());
|
|
||||||
if(reply && reply.length) {
|
|
||||||
$('#jot-title').val(reply);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
function jotShare(id) {
|
function jotShare(id) {
|
||||||
$('#like-rotator-' + id).show();
|
$('#like-rotator-' + id).show();
|
||||||
$.get('share/' + id, function(data) {
|
$.get('share/' + id, function(data) {
|
||||||
|
|
|
@ -21,6 +21,8 @@
|
||||||
{{ if $content }}<script>initEditor();</script>{{ endif }}
|
{{ if $content }}<script>initEditor();</script>{{ endif }}
|
||||||
|
|
||||||
<div id="profile-jot-submit-wrapper" class="jothidden">
|
<div id="profile-jot-submit-wrapper" class="jothidden">
|
||||||
|
<input type="submit" id="profile-jot-submit" name="submit" value="$share" />
|
||||||
|
|
||||||
<div id="profile-upload-wrapper" style="display: $visitor;" >
|
<div id="profile-upload-wrapper" style="display: $visitor;" >
|
||||||
<div id="wall-image-upload-div" ><a href="#" onclick="return false;" id="wall-image-upload" class="icon camera" title="$upload"></a></div>
|
<div id="wall-image-upload-div" ><a href="#" onclick="return false;" id="wall-image-upload" class="icon camera" title="$upload"></a></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -46,7 +48,6 @@
|
||||||
<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>
|
||||||
<input type="submit" id="profile-jot-submit" name="submit" value="$share" />
|
|
||||||
<div id="profile-jot-perms-end"></div>
|
<div id="profile-jot-perms-end"></div>
|
||||||
|
|
||||||
<div id="profile-jot-plugin-wrapper">
|
<div id="profile-jot-plugin-wrapper">
|
||||||
|
|
|
@ -274,7 +274,8 @@ div.wall-item-content-wrapper.shiny {
|
||||||
border: 0px;
|
border: 0px;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
width: 465px;
|
width: 530px;
|
||||||
|
margin-bottom: 5px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
border: 1px solid #ffffff;
|
border: 1px solid #ffffff;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,6 @@ var textlen = 0;
|
||||||
function initEditor(cb) {
|
function initEditor(cb) {
|
||||||
if (editor==false) {
|
if (editor==false) {
|
||||||
$("#profile-jot-text-loading").show();
|
$("#profile-jot-text-loading").show();
|
||||||
$("#jot-title-desc").show();
|
|
||||||
tinyMCE.init({
|
tinyMCE.init({
|
||||||
theme : "advanced",
|
theme : "advanced",
|
||||||
mode : "specific_textareas",
|
mode : "specific_textareas",
|
||||||
|
@ -85,6 +84,7 @@ function initEditor(cb) {
|
||||||
ed.onInit.add(function(ed) {
|
ed.onInit.add(function(ed) {
|
||||||
ed.pasteAsPlainText = true;
|
ed.pasteAsPlainText = true;
|
||||||
$("#profile-jot-text-loading").hide();
|
$("#profile-jot-text-loading").hide();
|
||||||
|
$(".jothidden").show();
|
||||||
$("#profile-jot-submit-wrapper").show();
|
$("#profile-jot-submit-wrapper").show();
|
||||||
{{ if $newpost }}
|
{{ if $newpost }}
|
||||||
$("#profile-upload-wrapper").show();
|
$("#profile-upload-wrapper").show();
|
||||||
|
@ -125,30 +125,6 @@ function initEditor(cb) {
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
$("#jot-title").mouseout(function() {
|
|
||||||
$("#jot-title").hide();
|
|
||||||
var ttl = $("#jot-title").val();
|
|
||||||
$('#jot-title-display').html(ttl);
|
|
||||||
if(ttl.length) {
|
|
||||||
$("#jot-title-display").show();
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$("#jot-title-desc").show();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#jot-title-display").hover(function() {
|
|
||||||
$("#jot-title-display").hide();
|
|
||||||
$("#jot-title").show();
|
|
||||||
$("#jot-title").focus();
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#jot-title-desc").click(function() {
|
|
||||||
$("#jot-title-desc").hide();
|
|
||||||
$("#jot-title").show();
|
|
||||||
$("#jot-title").focus();
|
|
||||||
});
|
|
||||||
|
|
||||||
var uploader = new window.AjaxUpload(
|
var uploader = new window.AjaxUpload(
|
||||||
'wall-image-upload',
|
'wall-image-upload',
|
||||||
{ action: 'wall_upload/$nickname',
|
{ action: 'wall_upload/$nickname',
|
||||||
|
|
|
@ -16,12 +16,7 @@
|
||||||
<input type="hidden" name="coord" id="jot-coord" value="" />
|
<input type="hidden" name="coord" id="jot-coord" value="" />
|
||||||
<input type="hidden" name="post_id" value="$post_id" />
|
<input type="hidden" name="post_id" value="$post_id" />
|
||||||
<input type="hidden" name="preview" id="jot-preview" value="0" />
|
<input type="hidden" name="preview" id="jot-preview" value="0" />
|
||||||
|
<input name="title" id="jot-title" type="text" placeholder="$placeholdertitle" value="$title" class="jothidden" style="display:none">
|
||||||
<div id="jot-title-wrapper">
|
|
||||||
<span id="jot-title-desc" style="display: none;">$addtitle</span>
|
|
||||||
<span id="jot-title-display" style="display: none;"></span>
|
|
||||||
<input type="text" name="title" id="jot-title" value="" style="display: none;" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<img id="profile-jot-text-loading" src="images/rotator.gif" alt="$wait" title="$wait" style="display: none;" />
|
<img id="profile-jot-text-loading" src="images/rotator.gif" alt="$wait" title="$wait" style="display: none;" />
|
||||||
<textarea rows="5" cols="64" class="profile-jot-text" id="profile-jot-text" name="body" >{{ if $content }}$content{{ else }}$share{{ endif }}</textarea>
|
<textarea rows="5" cols="64" class="profile-jot-text" id="profile-jot-text" name="body" >{{ if $content }}$content{{ else }}$share{{ endif }}</textarea>
|
||||||
|
|
|
@ -761,21 +761,23 @@ ul .sidebar-group-li .icon{
|
||||||
#profile-jot-submit-wrapper {
|
#profile-jot-submit-wrapper {
|
||||||
}
|
}
|
||||||
|
|
||||||
#jot-title-desc {
|
|
||||||
color: #cccccc;
|
|
||||||
}
|
|
||||||
|
|
||||||
#jot-title-wrapper {
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#jot-title {
|
#jot-title {
|
||||||
border: 1px solid #cccccc;
|
border: 0px;
|
||||||
width: 460px;
|
margin: 0px;
|
||||||
|
height: 20px;
|
||||||
|
width: 462px;
|
||||||
|
font-weight: bold;
|
||||||
|
border: 1px solid #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
#jot-title-display {
|
#jot-title::-webkit-input-placeholder{font-weight: normal;}
|
||||||
font-weight: bold;
|
#jot-title:-moz-placeholder{font-weight: normal;}
|
||||||
|
|
||||||
|
|
||||||
|
#jot-title:hover,
|
||||||
|
#jot-title:focus {
|
||||||
|
border: 1px solid #cccccc;
|
||||||
}
|
}
|
||||||
|
|
||||||
#profile-jot-perms, #profile-jot-submit {
|
#profile-jot-perms, #profile-jot-submit {
|
||||||
|
|
Loading…
Reference in a new issue