Parcourir la source

added page title in ProcesEditor

Piotr Labudda il y a 9 ans
Parent
commit
1f586e7049
1 fichiers modifiés avec 2 ajouts et 3 suppressions
  1. 2 3
      SE/se-lib/Route/UrlAction/ProcesEditor.php

+ 2 - 3
SE/se-lib/Route/UrlAction/ProcesEditor.php

@@ -102,15 +102,14 @@ class Route_UrlAction_ProcesEditor extends RouteBase {// TODO: UrlActionBase @se
 	public function defaultAction() {
 		UI::gora();
 		UI::menu();
-
 		try {
 			$id = V::get('id', 0, $_REQUEST, 'int');
 			if ($id <= 0) throw new Exception("Wrong ID");
-				$this->showEditor($id);
+			UI::setTitleJsTag("Edytor Procesu {{$id}}");
+			$this->showEditor($id);
 		} catch (Exception $e) {
 			UI::alert('danger', "Error: " . $e->getMessage());
 		}
-
 		UI::dol();
 	}