if (e.target.id !== 'newgroup-form') {
$("#newgroup-form").hide();
$("#newgroup-init").show();
- }
+ }
});
});
}
)
});
+
+ // click on group name
+ // FIXME: also triggered when clicking on "remove"
+ $('ul').on('click', 'li[data-gid]', function (event) {
+ var li = $(this);
+ var gid = $(li).attr('data-gid');
+ // Call function for handling delete/undo on Groups
+ GroupList.showGroup(gid);
+ });
+
// Implements Groupname editing.
$('#app-navigation').on('click', 'img.rename', function (event) {
event.stopPropagation();
});
});
- // click on group name
- // FIXME: also triggered when clicking on "remove"
- $('ul').on('click', 'li', function (event) {
- var li = $(this);
- var gid = $(li).attr('data-gid');
- // Call function for handling delete/undo on Groups
- GroupList.showGroup(gid);
- });
-
$('#newuser').submit(function (event) {
event.preventDefault();
var username = $('#newusername').val();