mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 20:36:15 +02:00
This commit's contents were auto-generated. They wrap all viewjs
in functions and define a common prologue.
New file contents:
```js
function VIEWNAMEView(Grocy, scope = null)
{
var $scope = $;
if(scope != null)
{
$scope = $(scope).find;
}
// original contents indented with \t
}
```
21 lines
402 B
JavaScript
21 lines
402 B
JavaScript
function aboutView(Grocy, scope = null)
|
|
{
|
|
var $scope = $;
|
|
if (scope != null)
|
|
{
|
|
$scope = $(scope).find;
|
|
}
|
|
|
|
$('[data-toggle="collapse-next"]').on("click", function(e)
|
|
{
|
|
e.preventDefault();
|
|
$(this).parent().next().collapse("toggle");
|
|
});
|
|
|
|
if ((typeof GetUriParam("tab") !== "undefined" && GetUriParam("tab") === "changelog"))
|
|
{
|
|
$(".nav-tabs a[href='#changelog']").tab("show");
|
|
}
|
|
|
|
}
|