diff options
| author | Nigel Osborne <kiwi3685@me.com> | 2010-07-08 02:47:07 +0000 |
|---|---|---|
| committer | Nigel Osborne <kiwi3685@me.com> | 2010-07-08 02:47:07 +0000 |
| commit | b38b66d0c70989528fe2712c021b16b9a054d2eb (patch) | |
| tree | a4ff31b23b5ee34f79717a77b66c8bcfe6f49b03 /modules/googlemap/places_edit.php | |
| parent | 0d5f0929db1b887de035257e2c6f97d76445d078 (diff) | |
| download | webtrees-b38b66d0c70989528fe2712c021b16b9a054d2eb.tar.gz webtrees-b38b66d0c70989528fe2712c021b16b9a054d2eb.tar.bz2 webtrees-b38b66d0c70989528fe2712c021b16b9a054d2eb.zip | |
Removing the option to turn off autoclose on the edit pop-ups, except when debug is enabled.
(forum topic: http://webtrees.net/forums/7-open-discussion/2301-auto-close-edit-windows)
Diffstat (limited to 'modules/googlemap/places_edit.php')
| -rw-r--r-- | modules/googlemap/places_edit.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/googlemap/places_edit.php b/modules/googlemap/places_edit.php index 3e5d963c89..a23dd6c048 100644 --- a/modules/googlemap/places_edit.php +++ b/modules/googlemap/places_edit.php @@ -35,7 +35,6 @@ if (!defined('WT_WEBTREES')) { require WT_ROOT.'modules/googlemap/defaultconfig.php'; require WT_ROOT.'includes/functions/functions_edit.php'; -global $EDIT_AUTOCLOSE; $action=safe_REQUEST($_REQUEST, 'action'); if (isset($_REQUEST['placeid'])) $placeid = $_REQUEST['placeid']; if (isset($_REQUEST['place_name'])) $place_name = $_REQUEST['place_name']; @@ -101,7 +100,8 @@ if ($action=='addrecord' && WT_USER_IS_ADMIN) { $statement->execute(array(getHighestIndex()+1, $placeid, $level, stripLRMRLM($_POST['NEW_PLACE_NAME']), $_POST['LONG_CONTROL'][3].$_POST['NEW_PLACE_LONG'], $_POST['LATI_CONTROL'][3].$_POST['NEW_PLACE_LATI'], $_POST['NEW_ZOOM_FACTOR'], $_POST['icon'])); } - if ($EDIT_AUTOCLOSE && !WT_DEBUG) { + // autoclose window when update successful unless debug on + if (!WT_DEBUG) { echo "\n<script type=\"text/javascript\">\n<!--\nedit_close();\n//-->\n</script>"; } echo "<div class=\"center\"><a href=\"javascript:;\" onclick=\"edit_close();return false;\">", i18n::translate('Close Window'), "</a></div><br />\n"; @@ -119,7 +119,8 @@ if ($action=='updaterecord' && WT_USER_IS_ADMIN) { $statement->execute(array(stripLRMRLM($_POST['NEW_PLACE_NAME']), $_POST['LATI_CONTROL'][3].$_POST['NEW_PLACE_LATI'], $_POST['LONG_CONTROL'][3].$_POST['NEW_PLACE_LONG'], $_POST['NEW_ZOOM_FACTOR'], $_POST['icon'], $placeid)); } - if ($EDIT_AUTOCLOSE && !WT_DEBUG) { + // autoclose window when update successful unless debug on + if (!WT_DEBUG) { echo "\n<script type=\"text/javascript\">\n<!--\nedit_close();\n//-->\n</script>"; } echo "<div class=\"center\"><a href=\"javascript:;\" onclick=\"edit_close();return false;\">", i18n::translate('Close Window'), "</a></div><br />\n"; |
