better title handling (duepuntozero only at this time)
This commit is contained in:
parent
47edaf9ad7
commit
f1c7db593c
|
@ -103,6 +103,8 @@ function initEditor(cb){
|
||||||
<script type="text/javascript" src="js/ajaxupload.js" ></script>
|
<script type="text/javascript" src="js/ajaxupload.js" ></script>
|
||||||
<script>
|
<script>
|
||||||
var ispublic = '$ispublic';
|
var ispublic = '$ispublic';
|
||||||
|
var addtitle = '$addtitle';
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
/* enable tinymce on focus */
|
/* enable tinymce on focus */
|
||||||
|
@ -112,9 +114,17 @@ function initEditor(cb){
|
||||||
initEditor();
|
initEditor();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$("#jot-title").mouseout(function() {
|
||||||
|
$("#jot-title").hide();
|
||||||
|
var ttl = $("#jot-title").val();
|
||||||
|
$("#jot-title-desc").html((ttl.length) ? "<strong>" + ttl + "</strong>" : addtitle );
|
||||||
|
$("#jot-title-desc").show();
|
||||||
|
});
|
||||||
|
|
||||||
$("#jot-title-desc").click(function() {
|
$("#jot-title-desc").click(function() {
|
||||||
$("#jot-title-desc").hide();
|
$("#jot-title-desc").hide();
|
||||||
$("#jot-title").show();
|
$("#jot-title").show();
|
||||||
|
$("#jot-title").focus();
|
||||||
});
|
});
|
||||||
|
|
||||||
var uploader = new window.AjaxUpload(
|
var uploader = new window.AjaxUpload(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user