Fix issue in navigating to group details page

merge-requests/1/head
charithag 9 years ago
parent f04cb206b6
commit 117ed175c3

@ -300,7 +300,8 @@ function attachEvents() {
* on Group Management page in WSO2 IoT Server Console.
*/
$("a.view-group-link").click(function () {
$("#group_data").closest('form').submit();
var groupId = $(this).data("groupid");
$("#group-data-form-" + groupId).closest('form').submit();
});
/**

@ -1,6 +1,6 @@
{{#each groups}}
{{groupMap this}}
<form action="/iotserver/group/{{id}}" method="POST" id="group_data" >
<form id="group-data-form-{{id}}" action="/iotserver/group/{{id}}" method="POST" >
<input type="hidden" name="name" value="{{name}}">
<input type="hidden" name="deviceCount" value="{{deviceCount}}">
<input type="hidden" name="dateOfCreation" value="{{dateOfCreation}}">
@ -28,7 +28,7 @@
<span class="ast-ver">Shared with: {{users}}</span>
<div href="#" class="ast-btn-group">
<a class="view-group-link" data-group="{{this}}">
<a class="view-group-link" data-groupid="{{id}}">
<span class="fw-stack">
<i class="fw fw-ring fw-stack-2x"></i>
<i class="fw fw-view fw-stack-1x"></i>

Loading…
Cancel
Save