Changeset 94620 in spip-zone
- Timestamp:
- Jan 17, 2016, 9:17:50 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/foundation_6/trunk/foundation_6_fonctions.php
r94619 r94620 105 105 ."<button type='submit' class='submit'$title$onclick>$libelle</button></div></form>"; 106 106 } else { 107 return "<form class='bouton_action_post $class' method='post' action='$url'><div>".form_hidden($url) 107 108 // Détection de la class ajax 109 // Code reprit (et modifié) du plugin bootstrap: 110 // http://zone.spip.org/trac/spip-zone/browser/_plugins_/bootstrap/trunk/bootstrap3_fonctions.php#L109 111 $array_class = explode(' ', $class); 112 $ajax_index = array_search('ajax', $array_class); 113 if ($ajax_index !== false) { 114 $ajax = ' ajax'; 115 // On a plus besoin de la class ajax dans la liste des class, 116 // ça pourrait créer des problèmes 117 unset($array_class[$ajax_index]); 118 $class = implode(' ', $array_class); 119 } else { 120 $ajax = ''; 121 } 122 123 return "<form class='bouton_action_post $ajax' method='post' action='$url'><div>".form_hidden($url) 108 124 ."<button type='submit' class='submit $class'$title$onclick>$libelle</button></div></form>"; 109 125 }
Note: See TracChangeset
for help on using the changeset viewer.