mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 20:36:15 +02:00
21 lines
422 B
JavaScript
21 lines
422 B
JavaScript
function aboutView(Grocy, scope = null)
|
|
{
|
|
var $scope = $;
|
|
if (scope != null)
|
|
{
|
|
$scope = $(scope).find;
|
|
}
|
|
|
|
$scope('[data-toggle="collapse-next"]').on("click", function(e)
|
|
{
|
|
e.preventDefault();
|
|
$(this).parent().next().collapse("toggle");
|
|
});
|
|
|
|
if ((typeof Grocy.GetUriParam("tab") !== "undefined" && Grocy.GetUriParam("tab") === "changelog"))
|
|
{
|
|
$scope(".nav-tabs a[href='#changelog']").tab("show");
|
|
}
|
|
|
|
}
|