diff --git a/following.html b/following.html index 0122525..ab4f61e 100644 --- a/following.html +++ b/following.html @@ -206,6 +206,12 @@
  • +
    +
    +
    +
    + +
  • diff --git a/home.html b/home.html index b9ac963..c06955c 100644 --- a/home.html +++ b/home.html @@ -298,6 +298,11 @@
  • +
    +
    +
    +
    +
  • diff --git a/js/interface_common.js b/js/interface_common.js index 6d08428..d0a5b7e 100644 --- a/js/interface_common.js +++ b/js/interface_common.js @@ -578,6 +578,15 @@ function composeNewPost(e, postAreaNew) { postAreaNew.find('textarea:last').focus(); } +function posPostPreview(event) { + var textArea = $(event.target); + var postPreview = textArea.siblings('#post-preview'); + if (!postPreview.length) + postPreview = $('#post-preview-template').children().clone(); + postPreview.html(htmlFormatMsg(textArea[0].value, [])) + textArea.before(postPreview); +} + // Reduz Área do Novo post function unfocusThis() { $(this).removeClass('open'); @@ -680,6 +689,8 @@ function replyTextInput(event) { textArea.caret(caretPos); } } + + textAreaForm.find('#post-preview').html(htmlFormatMsg(textArea[0].value, [])); } function getPostSplitingPML() { @@ -1372,6 +1383,7 @@ function initInterfaceCommon() { .clickoutside(unfocusThis) .children('textarea') .on({ + 'focus': posPostPreview, 'input': replyTextInput, // input event fires in modern browsers (IE9+) on any changes in textarea (and copypasting with mouse too) 'input focus': replyTextUpdateRemaining, 'keyup': replyTextKeySend diff --git a/js/tmobile.js b/js/tmobile.js index dfd6c89..32603a6 100644 --- a/js/tmobile.js +++ b/js/tmobile.js @@ -26,6 +26,7 @@ function initializeTwister( redirectNetwork, redirectLogin, cbFunc, cbArg ) { // reply text counter both newmsg and dmchat $('.post-area-new textarea') .off('input keyup') + .on('focus', posPostPreview) .on('keyup', replyTextInput) .on('keyup', function() { replyTextUpdateRemaining(this); }) ; diff --git a/tmobile.html b/tmobile.html index 7b63760..6a7699b 100644 --- a/tmobile.html +++ b/tmobile.html @@ -1,12 +1,12 @@ - - - + + + twister mobile - + @@ -38,8 +38,8 @@ - - + +
    @@ -94,7 +94,7 @@

    twister login

    -
    +
    - +
    - + -
    +
    - +
    - +
    Search

    twister

    @@ -197,7 +197,7 @@
    - +
  • user-photo
  • - - + + - + user-photo - +
  • @@ -782,7 +787,7 @@

  • - +
  • @@ -791,9 +796,9 @@

  • - + - - + +