class/oledrion_utils.php 1 location
|
@@ 224-231 (lines=8) @@
|
221 |
|
* @param boolean $form Is this a confirmation for a form ? |
222 |
|
* @return string the javascript code to insert in the link (or in the form) |
223 |
|
*/ |
224 |
|
public static function javascriptLinkConfirm($message, $form = false) |
225 |
|
{ |
226 |
|
if (!$form) { |
227 |
|
return "onclick=\"javascript:return confirm('" . str_replace("'", ' ', $message) . "')\""; |
228 |
|
} else { |
229 |
|
return "onSubmit=\"javascript:return confirm('" . str_replace("'", ' ', $message) . "')\""; |
230 |
|
} |
231 |
|
} |
232 |
|
|
233 |
|
/** |
234 |
|
* Get current user IP |
class/utility.php 1 location
|
@@ 368-375 (lines=8) @@
|
365 |
|
* @param boolean $form Is this a confirmation for a form ? |
366 |
|
* @return string the javascript code to insert in the link (or in the form) |
367 |
|
*/ |
368 |
|
public static function javascriptLinkConfirm($message, $form = false) |
369 |
|
{ |
370 |
|
if (!$form) { |
371 |
|
return "onclick=\"javascript:return confirm('" . str_replace("'", ' ', $message) . "')\""; |
372 |
|
} else { |
373 |
|
return "onSubmit=\"javascript:return confirm('" . str_replace("'", ' ', $message) . "')\""; |
374 |
|
} |
375 |
|
} |
376 |
|
|
377 |
|
/** |
378 |
|
* Get current user IP |