aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/jot-header.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'view/tpl/jot-header.tpl')
-rwxr-xr-xview/tpl/jot-header.tpl20
1 files changed, 18 insertions, 2 deletions
diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl
index 4121882b7..b405e4ac8 100755
--- a/view/tpl/jot-header.tpl
+++ b/view/tpl/jot-header.tpl
@@ -3,6 +3,7 @@
var editor = false;
var textlen = 0;
var plaintext = '{{$editselect}}';
+var pretext = '{{$pretext}}';
function initEditor(cb){
if (editor==false){
@@ -21,6 +22,8 @@ function initEditor(cb){
});
$(".jothidden").show();
if (typeof cb!="undefined") cb();
+ if(pretext.length)
+ addeditortext(pretext);
return;
}
tinyMCE.init({
@@ -191,7 +194,7 @@ function enableOnUser(){
if(reply && reply.length) {
reply = bin2hex(reply);
$('#profile-rotator').spin('tiny');
- $.get('{{$baseurl}}/parse_url?binurl=' + reply, function(data) {
+ $.get('{{$baseurl}}/linkinfo?f=&binurl=' + reply, function(data) {
addeditortext(data);
$('#profile-rotator').spin(false);
});
@@ -231,6 +234,19 @@ function enableOnUser(){
})
}
+ function jotGetPubDate() {
+ //reply = prompt("{{$expirewhen}}", $('#jot-expire').val());
+ $('#createdModal').modal();
+ $('#created-modal-OKButton').on('click', function() {
+ reply=$('#created-date').val();
+ if(reply && reply.length) {
+ $('#jot-created').val(reply);
+ $('#createdModal').modal('hide');
+ }
+ })
+ }
+
+
function jotShare(id) {
if ($('#jot-popup').length != 0) $('#jot-popup').show();
@@ -258,7 +274,7 @@ function enableOnUser(){
if(reply && reply.length) {
reply = bin2hex(reply);
$('#profile-rotator').spin('tiny');
- $.get('{{$baseurl}}/parse_url?binurl=' + reply, function(data) {
+ $.get('{{$baseurl}}/linkinfo?f=&binurl=' + reply, function(data) {
if (!editor) $("#profile-jot-text").val("");
initEditor(function(){
addeditortext(data);