Added reset_focus helper function.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 21 May 2009 21:29:42 +0000 (21:29 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 21 May 2009 21:29:42 +0000 (21:29 +0000)
includes/ui/ui_view.inc

index f95182abe46bfa9514d1ce73b1018e72bc5e9707..99111d9d03efb9b560bcdf7cf3be23c1a35a529b 100644 (file)
@@ -638,6 +638,13 @@ function default_focus($name=null, $form_no=0) {
     }
        return $name;
 }
+/*
+       Reset focus to next control element (e.g. link).
+*/
+function reset_focus()
+{
+       unset($_POST['_focus']);
+}
 
 function get_js_png_fix()
 {