inserimento emoticons texarea
ciao sto usando IsVipi OSSN sono riuscito a tradurlo in italiano e a inserire le Emoticons funziona ma devo aggiornare la pagina per vedere il post con le emoctions sicuramente manca qualcosa...
il form della texarea: non ho messo <script> chiedo aiuto grazie
$('#text-update').ajaxForm({
dataType: 'json',
success: function(json) {
$("#processing").show();
$('#errorLog').css('display','none');
$('input[type="submit"]').prop('disabled', true);
setTimeout(function(){
if(json.err == true) {
$('#errorLog').css('display','block');
$('#errorLog').html(json.message);
} else if (json.err == false){
$('#errorLog').css('display','none');
$('#text-update').clearForm();
$('#text-update').resetForm();
$('.liveurl-loader').hide();
//reload our timeline
loadTimeline();
$finished = true;
$(':input').val('');
}
$('input[type="submit"]').prop('disabled', false);
$("#processing").hide();
}, 500);
}
});
var $myForm = $("#text-update");
$myForm.submit(function(){
$myForm.submit(function(){
return false;
});
});
------------------------------------------------------
LA TEXAREA
<div class="tab-pane active" id="update-timeline">
<form action="<?php echo ISVIPI_URL .'p/feeds' ?>" method="POST" id="text-update">
<textarea name="feed" class="form-control no-bottom-border" rows="2" placeholder="cosa ti passa per la testa?" data-emojiable="true"></textarea>
<input type="hidden" name="isv_op" value="<?php echo $converter->encode('new-feed') ?>" />
<p class="lead emoji-picker-container"></p>
<div class="form-group">
<button type="submit" class="btn btn-sm btn-primary pull-right">Post</button>
</div>
<div class="feed-spinner" id="processing" style="display:none"><i class="fa fa-spinner fa-pulse"></i></div>
<div class="clear"></div>
</form>
</div>
-----------------------------------------------
PER LE EMO
$(function() {
// Initializes and creates emoji set from sprite sheet
window.emojiPicker = new EmojiPicker({
emojiable_selector: '[data-emojiable=true]',
assetsPath: '../lib/img/',
popupButtonClasses: 'fa fa-smile-o'
});
// Finds all elements with `emojiable_selector` and converts them to rich emoji input fields
// You may want to delay this step if you have dynamically created input fields that appear later in the loading process
// It can be called as many times as necessary; previously converted input fields will not be converted again
window.emojiPicker.discover();
});