Changeset 5926 in spip-zone
- Timestamp:
- Oct 5, 2006, 10:14:46 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/_dev_/widgets/widgets.js
r5923 r5926 27 27 var w,h; 28 28 w = $(me).width()-50; // 50 = largeur du bouton "ok" 29 if (w<100) w=100;30 if (w>700) w=700;31 29 h = $(me).height(); 32 if (h<12) h=12;33 30 34 31 // charger le formulaire … … 47 44 .css('backgroundColor', 'yellow') 48 45 .css('font', 'inherit') // pour safari 49 .css({"width":w+'px',"height":h+'px'})50 46 .css({ 51 'fontSize': $(me).css('fontSize'), 52 'fontFamily': $(me).css('fontFamily') 47 'fontSize': $(me).css('fontSize'), 48 'fontFamily': $(me).css('fontFamily') 49 }) 50 .each(function() { 51 if (w<100) w=100; 52 if (w>700) w=700; 53 if (this.nodeName.toUpperCase()=='TEXTAREA') { 54 if (h<36) h=36; 55 h+='px'; 56 } else { 57 if (h<12) h=$(me).css('fontSize'); 58 else h+='px'; 59 } 60 $(this).css({"width":w+'px',"height":h}); 53 61 }) 54 62 .each(function(n){if (n==0) this.focus();})
Note: See TracChangeset
for help on using the changeset viewer.