Преглед изворни кода

FIX #6 redirect after saving event

boyska пре 6 година
родитељ
комит
7e6735b438
1 измењених фајлова са 4 додато и 1 уклоњено
  1. 4 1
      larigira/dbadmin/templates/edit_event.html

+ 4 - 1
larigira/dbadmin/templates/edit_event.html

@@ -32,7 +32,10 @@ $(function() {
 		});
 		jQuery.post(
 			'{{routeprefix}}/db/api/alarm/' + my_id + '/actions',
-			{"actions[]": ids.toArray()}
+			{"actions[]": ids.toArray()},
+			function onSuccess(data, textStatus, xhr) {
+				window.location.href = "{{routeprefix}}/db/list";
+			}
 			);
 	});
 });