diff --git a/e107_files/jslib/e107.js.php b/e107_files/jslib/e107.js.php index 4b76a971b..c7f12d978 100644 --- a/e107_files/jslib/e107.js.php +++ b/e107_files/jslib/e107.js.php @@ -896,6 +896,7 @@ Object.extend(e107Helper, { } frm.submit(); } + if(el.hasClassName('reset')) el.selectedIndex = 0; }, /** diff --git a/e107_handlers/admin_ui.php b/e107_handlers/admin_ui.php index 3ad607dd1..ebbcaba6d 100644 --- a/e107_handlers/admin_ui.php +++ b/e107_handlers/admin_ui.php @@ -217,6 +217,11 @@ class e_admin_request { if(is_array($key)) { + if(empty($key)) + { + $this->_posted_qry = array(); //POST reset + return $this; + } foreach ($key as $k=>$v) { $this->setPosted($k, $v); @@ -1642,7 +1647,7 @@ class e_admin_controller if(!method_exists($this, $method)) { $this->getRequest()->setAction('e404'); - e107::getMessage()->add('Action '.$method.' not found!', E_MESSAGE_ERROR); + e107::getMessage()->add(sprintf(LAN_UI_404_METHOD_ERROR, $method), E_MESSAGE_ERROR); } } @@ -1758,7 +1763,7 @@ class e_admin_controller { $action = $request->getActionName(); } - + // check for observer $actionName = $this->toMethodName($action, 'page'); $ret = ''; @@ -1802,12 +1807,12 @@ class e_admin_controller public function E404Observer() { - $this->getResponse()->setTitle('Page Not Found'); + $this->getResponse()->setTitle(LAN_UI_404_TITLE_ERROR); } public function E404Page() { - return '