Ajout de la detection des liens dans les sms

This commit is contained in:
Pierre-Lin Bonnemaison 2015-09-22 16:35:33 +02:00
parent 28ca04e3de
commit dc847c98b8
3 changed files with 14 additions and 0 deletions

10
js/Autolinker.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -65,6 +65,9 @@
$.each(data.messages, function(key, message) { $.each(data.messages, function(key, message) {
//On ajoute la detection de lien dans le texte du message
message.text = Autolinker.link(message.text, {newWindow:true});
switch (message.type) switch (message.type)
{ {
case 'received' : case 'received' :

View File

@ -23,6 +23,7 @@
<script src="<?php echo HTTP_PWD; ?>js/bootstrap.min.js"></script> <script src="<?php echo HTTP_PWD; ?>js/bootstrap.min.js"></script>
<script src="<?php echo HTTP_PWD; ?>js/plugins/morris/raphael.min.js"></script> <script src="<?php echo HTTP_PWD; ?>js/plugins/morris/raphael.min.js"></script>
<script src="<?php echo HTTP_PWD; ?>js/plugins/morris/morris.min.js"></script> <script src="<?php echo HTTP_PWD; ?>js/plugins/morris/morris.min.js"></script>
<script src="<?php echo HTTP_PWD; ?>js/Autolinker.min.js"></script>
<!-- Magic Suggest JS and CSS --> <!-- Magic Suggest JS and CSS -->
<script src="<?php echo HTTP_PWD; ?>js/magicsuggest.min.js"></script> <script src="<?php echo HTTP_PWD; ?>js/magicsuggest.min.js"></script>
<link href="<?php echo HTTP_PWD; ?>css/magicsuggest.css" rel="stylesheet"> <link href="<?php echo HTTP_PWD; ?>css/magicsuggest.css" rel="stylesheet">