summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/notes/admin.py2
-rw-r--r--app/notes/models.py2
-rw-r--r--app/notes/static/count.js4
3 files changed, 4 insertions, 4 deletions
diff --git a/app/notes/admin.py b/app/notes/admin.py
index 17660c9..3bbdc8d 100644
--- a/app/notes/admin.py
+++ b/app/notes/admin.py
@@ -5,7 +5,7 @@ from django import forms
class NoteModelForm(forms.ModelForm):
- body_markdown = forms.CharField(widget=forms.Textarea(attrs={'maxlength': 400, 'rows': 5, 'cols': 65}), label='Note')
+ body_markdown = forms.CharField(widget=forms.Textarea(attrs={'maxlength': 40000, 'rows': 20, 'cols': 75}), label='Note')
class Meta:
model = Note
diff --git a/app/notes/models.py b/app/notes/models.py
index 62b8992..a7ff599 100644
--- a/app/notes/models.py
+++ b/app/notes/models.py
@@ -37,7 +37,7 @@ class Note(models.Model):
state_name = models.CharField(max_length=250, null=True, blank=True)
country_name = models.CharField(max_length=150, null=True, blank=True)
body_html = models.TextField(blank=True)
- body_markdown = models.CharField('Note', max_length=450)
+ body_markdown = models.TextField('Note')
twitter_text = models.CharField('Twitter text', max_length=450, null=True, blank=True)
twitter_id = models.CharField('twitter_id', max_length=450)
twitter_send = models.BooleanField("send to twitter?", default=False)
diff --git a/app/notes/static/count.js b/app/notes/static/count.js
index d75d870..6d1b5a0 100644
--- a/app/notes/static/count.js
+++ b/app/notes/static/count.js
@@ -1,12 +1,12 @@
var jQuery = django.jQuery;
var $ = jQuery;
$(document).ready(function () {
- $('#id_body_markdown').after('<span style="display: inline-block; margin-left: 2em;"><span id="counter">400</span> chars used </span>');
+ $('#id_body_markdown').after('<span style="display: inline-block; margin-left: 2em;"><span id="counter">40000</span> chars used </span>');
$('#id_body_markdown').simplyCountable({
counter: '#counter',
countType: 'characters',
- maxCount: 400,
+ maxCount: 40000,
strictMax: false,
countDirection: 'up',
safeClass: 'safe',