make updates

This commit is contained in:
Henrique Dias
2015-09-18 16:49:53 +01:00
parent f7227520ea
commit 0549bd73eb
16 changed files with 412 additions and 334 deletions

File diff suppressed because one or more lines are too long

View File

@@ -5,6 +5,7 @@ $(document).ready(function() {
$(document).on('ready pjax:success', function() {
// Starts the perfect scroolbar plugin
$('.scroll').perfectScrollbar();
$('textarea.auto-size').textareaAutoSize();
// Toggles between preview and editing mode
$("#preview").click(function(event) {
@@ -50,6 +51,8 @@ $(document).on('ready pjax:success', function() {
url = $(this).attr('action'),
button = $(this).find("input[type=submit]:focus");
console.log(data)
$.ajax({
type: 'POST',
url: url,