Changeset 10185 in spip-zone
- Timestamp:
- Mar 6, 2007, 1:58:00 AM (14 years ago)
- Location:
- _plugins_/_stable_/crayons
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/_stable_/crayons/action/crayons_html.php
r10179 r10185 157 157 function formulaire($contexte = array(), $inputAttrs = array()) { 158 158 return '<form class="formulaire_spip" method="post" action="' . 159 str_replace('crayons_html', 'crayons_store', self( )) . '">' .159 str_replace('crayons_html', 'crayons_store', self(true)) . '">' . 160 160 $this->code() . 161 161 $this->input($contexte, $inputAttrs) . … … 247 247 */ 248 248 function boutons($boutons = array()) { 249 $crayonsImgPath = dirname( find_in_path('images/cancel.png'));249 $crayonsImgPath = dirname(url_absolue(find_in_path('images/cancel.png'))); 250 250 if (!isset($boutons['submit'])) { 251 251 $boutons['submit'] = array('ok', texte_backend(_T('bouton_enregistrer'))); -
_plugins_/_stable_/crayons/js/crayons.js
r10165 r10185 20 20 function cfgCrayons(options) 21 21 { 22 this.url_crayons_html = 'spip.php?action=crayons_html';22 this.url_crayons_html = options['dir_racine']+'spip.php?action=crayons_html'; 23 23 this.img = { 24 24 'searching':{'file':'searching.gif','txt':'En attente du serveur ...'}, -
_plugins_/_stable_/crayons/tetecrayons.php
r9395 r10185 21 21 22 22 // sinon regarder rapidement si la page a des classes crayon 23 if ( !strpos($page, 'crayon'))23 if (strpos($page, 'crayon')===FALSE) 24 24 return $page; 25 25 … … 61 61 'imgPath' => dirname(find_in_path('images/crayon.png')), 62 62 'droits' => $droits, 63 'dir_racine' => _DIR_RACINE, 63 64 64 65 'txt' => array(
Note: See TracChangeset
for help on using the changeset viewer.