Changeset 5877 in spip-zone
- Timestamp:
- Oct 4, 2006, 3:31:31 PM (15 years ago)
- Location:
- _plugins_/_dev_/widgets
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/_dev_/widgets/inc/widgets.php
r5876 r5877 75 75 switch ($type) { 76 76 case 'texte': 77 return '<textarea '77 return '<textarea class="widget-active"' 78 78 . ' name="content_'.$this->key.'">' 79 . $this->text # entites_html79 . entites_html($this->text) 80 80 . '</textarea>'."\n"; 81 81 case 'ligne': 82 82 default: 83 return '<input type="text"'83 return '<input class="widget-active" type="text"' 84 84 . ' name="content_'.$this->key.'"' 85 85 . ' value="' 86 . entites_html($this->text) # entites_html86 . entites_html($this->text) 87 87 . '" />'."\n"; 88 88 } -
_plugins_/_dev_/widgets/widgets.js
r5876 r5877 7 7 var me = this; 8 8 9 // Ce bloc ne fonctionne pas :(9 // reglages de taille mini/maxi; pas tres beau 10 10 var w,h; 11 w = $(me).width()+'px'; 12 h = $(me).height()+'px'; 11 w = $(me).width(); 12 if (w<100) w=100; 13 if (w>700) w=700; 14 w+='px'; 15 h = $(me).height(); 16 if (w<12) h=12; 17 h+='px'; 18 13 19 // charger le formulaire 14 20 $.get(url_widgets_html+encodeURIComponent(this.className), … … 23 29 .click($.setupwidget); // recursif 24 30 }) 25 .find(" textarea,input[@type='text']")31 .find(".widget-active") 26 32 .css('backgroundColor', 'yellow') 27 33 .css('font', 'inherit') // pour safari
Note: See TracChangeset
for help on using the changeset viewer.