Ticket #406 (closed: fixed)

Opened 4 years ago

Last modified 2 years ago

resizable textarea

Reported by: millette Assigned to: anarcat
Priority: normal Milestone: alternc-0.9.3.1
Component: Bureau: gestionnaire de fichiers Version: alternc-0.9.3
Severity: feature Keywords:
Cc:

Description

Un peu de javascript, soupoudrer un peu de html, et on obtient un textarea qu'on peut agrandir simplement avec la souris. Voir http://thraxil.org/test/resize.html pour un exemple.

Change History

05/02/05 19:20:43 changed by anarcat

une patch? ;)

05/03/05 01:48:36 changed by millette

Voici ce que ça donne: http://newton.waglo.com/~millette/alternc/bro_editor.php

La patch (diff nouveau ancien) mais j'ai pas l'habitude de faire ça : http://newton.waglo.com/~millette/alternc/orig/bro_editor.patch.txt

Je javascript et l'image sont ici : http://newton.waglo.com/~millette/alternc/resize_files/

modifié le : 02/05/05 23:49

05/03/05 16:43:16 changed by anarcat

  • status changed from new to assigned.
  • owner changed from anonymous to anarcat.
  • summary changed from suggestion d'un feature: resizable textarea to resizable textarea.
  • severity changed from tweak to feature.
  • milestone set to 0.9.3.

wow! je m'attendais pas à tant! :) je vais installer ça sur Koumbit pour tester, et je commit tout ça...

05/03/05 18:46:15 changed by anarcat

  • status changed from assigned to closed.
  • resolution set to fixed.
  • milestone set to 0.9.3.1.

committé!

j'ai modifié un peu la patch pour:

1- utiliser un zoli nom pour le div ("resizer" au lieu de "foo2) 2- mettre les fichiers aux bons endroits

une petite au sujet de la patch: il est préférabble d'utiliser le format "unified" de diff pour faire des patches. Il est plus descriptif et donne également le nom du fichier:

homere:/var/alternc/bureau/admin# diff -u bro_editor.php{.orig,} --- bro_editor.php.orig Thu Apr 28 02:10:46 2005 +++ bro_editor.php Tue May 3 10:35:06 2005 @@ -52,6 +52,7 @@

include("head.php"); ?>

+<script src="/admin/js/wz_dragdrop.js" type="text/javascript"></script>

</head> <body> <p>

[snip]

Autrement, merci beaucoup de ta contribution!