Задать вопрос

Тел: +7 965 3737 888

474

Просмотров

2

Ответов

bigger textfields in admin panel

Sometimes a textarea field is to small for usage. I add some JavaScript and CSS to resize all textareas a little dynamically: The JS change the size in dependence text-lengthen.

You should store this snippet into a file like this: templates_django/admin/base_site.html

Вопрос полезен? Да0/Нет0
file_4453.html(942.0б)
None

Ответы (2):

Ответsitaktif:10.02.2010
Ответ полезен? Да0/Нет0

Thanks, works perfectly !

I'd make a small change (line 16) to have a minimum size concerning the textbox (useful when we are creating a new object)

 if (rows < 20) {
      rows = 20;
 }
 else if (rows > 30) {
      rows = 30;
 }

Ответcapolise:11.10.2008
Ответ полезен? Да0/Нет0

At line 16 maybe you mean "if (rows < 30) {"