Commit d0d663f94475da2c51a7960d8c7c151deb48dfa1

Authored by Jean Wasilewski
1 parent 462b346c

Add news partially added

Showing 1 changed file with 6 additions and 0 deletions   Show diff stats
js/crep.js
... ... @@ -18,6 +18,12 @@ function loadNewDoc(doc) {
18 18 return false
19 19 }
20 20  
  21 +function addNews()
  22 +{
  23 + var elem = "<div class=\"panel panel-default\"><div class=\"panel-heading\"><h3 class=\"panel-title\"><input type=text class=\"form-control\" placeholder=\"Nouvel article\"/></h3></div><div class=\"panel-body\"><textarea class=\"form-control\"></textarea></div><div class=\"panel-footer\"><p>En cours d'édition</p></div></div>";
  24 + $("#mainContainer").append(elem);
  25 +}
  26 +
21 27 $().ready(function() {
22 28 // Navigue vers la page indiquée dans l'URL en cas de refresh
23 29 if (window.location.hash) {
... ...