Changeset 5933 in spip-zone
- Timestamp:
- Oct 5, 2006, 11:34:32 PM (15 years ago)
- Location:
- _plugins_/_dev_/widgets
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/_dev_/widgets/action/widgets_html.php
r5932 r5933 6 6 function autoriser_modifs($quoi = 'article', $id = 0) { 7 7 global $connect_id_auteur; 8 $connect_id_auteur = $GLOBALS['auteur_session']['id_auteur'];8 $connect_id_auteur = intval($GLOBALS['auteur_session']['id_auteur']); 9 9 10 10 if ($quoi != 'article') { -
_plugins_/_dev_/widgets/article.html
r5925 r5933 12 12 .surtitre {text-decoration: underline;} 13 13 div.intro {margin-left: 5em;} 14 .widget:hover {background-color: yellow;}14 .widget:hover {background-color: #cceeee;} 15 15 </style> 16 16 -
_plugins_/_dev_/widgets/widgets.html
r5894 r5933 10 10 .surtitre {text-decoration: underline;} 11 11 div.intro {margin-left: 5em;} 12 .widget:hover {background-color: yellow;}12 .widget:hover {background-color: #cceeee;} 13 13 </style> 14 14 </head> -
_plugins_/_dev_/widgets/widgets.js
r5931 r5933 6 6 var html = $(this).attr('orig_html'); 7 7 if (html != null) { 8 // enregistrer le widget avec le contenu modifie, si on veut y revenir 9 // $(this).attr('widget', $(this).html()); 10 // puis reafficher le contenu initial 8 11 $(this).html(html); 9 12 } … … 23 26 if ($(me).attr('orig_html') != null) 24 27 return; 28 29 // voir si je dispose deja du widget (ne marche pas) 30 if ($(me).attr('widget') != null) { 31 $(me) 32 .attr('orig_html', $(me).html()) 33 .html($(me).attr('widget')); 34 // ici reactiver .ajaxForm() etc... 35 return; 36 } 25 37 26 38 // charger le formulaire … … 63 75 if (e.keyCode == 27) { 64 76 $(me) 77 // .attr('widget',$(me).html()) // sauver le widget 65 78 .html($(me).attr('orig_html')) 66 79 .removeAttr('orig_html'); … … 71 84 .click(function(){ 72 85 $(me) 73 .html($(me).attr('orig_html')) 86 // .attr('widget',$(me).html()) // sauver le widget 87 .html($(me).attr('orig_html')) // retablir le contenu d'origine 74 88 .removeAttr('orig_html'); 75 89 return false; … … 89 103 $(function() { 90 104 $(".widget") 91 .removeAttr('orig_html')92 105 .click($.clickwidget); 93 106 $("html")
Note: See TracChangeset
for help on using the changeset viewer.