Index: modules/mod-func-tracker_input.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- modules/mod-func-tracker_input.php	(revision 44054)
+++ modules/mod-func-tracker_input.php	(revision )
@@ -3,7 +3,7 @@
 //
 // All Rights Reserved. See copyright.txt for details and a complete list of authors.
 // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
-// $Id: mod-func-tracker_input.php 43081 2012-11-21 13:21:35Z changi67 $
+// $Id: mod-func-tracker_input.php 43081 2012-09-21 19:57:34Z changi67 $
 
 if (strpos($_SERVER['SCRIPT_NAME'], basename(__FILE__)) !== false) {
 	header('location: index.php');
@@ -52,7 +52,13 @@
 				'description' => tr('Operation to perform in the following format: operationName(argument). Current operations are redirect with the URL template as the argument. @valueName@ will be replaced by the appropriate value where valueName is itemId, status or a permanent name'),
 				'filter' => 'text',
 			),
+			'insertmode' => array(
+				'name' => tr('Mode change on complete'),
+				'description' => tr('Target mode to enter after dialog closes'),
+				'filter' => 'text',
+				'default' => '',
-		),
+			),
+		),
 	);
 }
 
@@ -82,6 +88,7 @@
 	$streetview = isset($module_params['streetview']) ? $module_params['streetview'] : '';
 	$streetViewField = $definition->getFieldFromPermName($streetview);
 	$success = isset($module_params['success']) ? $module_params['success'] : '';
+	$insertmode = isset($module_params['insertmode']) ? $module_params['insertmode'] : '';
 
 	if (! $streetview || $prefs['fgal_upload_from_source'] != 'y' || ! $streetViewField) {
 		$streetview = '';
@@ -139,6 +146,7 @@
 				'operation' => $operation,
 				'argument' => $operationArgument,
 			),
+			'insertMode' => $insertmode,
 		)
 	);
 }
Index: templates/modules/mod-tracker_input.tpl
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- templates/modules/mod-tracker_input.tpl	(revision 44054)
+++ templates/modules/mod-tracker_input.tpl	(revision )
@@ -41,9 +41,15 @@
 			data: $(form).serialize(),
 			success: function (data) {
 				$(form).trigger('insert', [ data ]);
+				{{if $tracker_input.insertMode}}
+					$(form).closest('.tab, #appframe, body').find('.map-container')[0].modeManager.switchTo("{{$tracker_input.insertMode|escape}}");
+				{{/if}}
 			},
 			close: function () {
 				$(form).trigger('cancel');
+				{{if $tracker_input.insertMode}}
+					$(form).closest('.tab, #appframe, body').find('.map-container')[0].modeManager.switchTo("{{$tracker_input.insertMode|escape}}");
+				{{/if}}
 			}
 		});
 		return false;
