File: 02edit.js

package info (click to toggle)
tdiary 5.0.11-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,852 kB
  • sloc: ruby: 22,925; xml: 325; makefile: 16; sh: 10
file content (15 lines) | stat: -rw-r--r-- 388 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(function() {

  $(document).ready(function() {
    var form, targetArea;
    form = $('textarea');
    targetArea = $('div.update > div.form').first();
    if (form.width() < targetArea.width() / 2.5) {
      form.width(targetArea.width() / 2.5);
    }
    if (form.height() < targetArea.height() / 1.5) {
      return form.height(targetArea.height() / 1.5);
    }
  });

}).call(this);