From a4a97ed8c4aa263e985680dea7dd82163bd98519 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sat, 14 May 2011 10:09:31 +0200 Subject: [PATCH] Added helper for catching tabbed content widget change. --- includes/ui/ui_controls.inc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/includes/ui/ui_controls.inc b/includes/ui/ui_controls.inc index eaaccdca..6d0ccf99 100644 --- a/includes/ui/ui_controls.inc +++ b/includes/ui/ui_controls.inc @@ -415,6 +415,15 @@ function tabbed_content_end() { div_end(); // tabs widget } +function tab_changed($name) +{ + $to = find_submit("{$name}_", false); + if (!$to) return null; + + return array('from' => $from = get_post("_{$name}_sel"), + 'to' => $to); +} + /* Table editor interfaces. Key is editor type 0 => url of editor page 1 => hotkey code -- 2.30.2