Skip to content

Commit

Permalink
autoscroll to active report
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorgd committed Mar 2, 2021
1 parent 1b91e56 commit 38c2853
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/DotNetNuke.PowerBI/DotNetNuke.PowerBI.dnn
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<dotnetnuke type="Package" version="5.0">
<packages>
<package name="PowerBIEmbeddedList" type="Module" version="01.00.17">
<package name="PowerBIEmbeddedList" type="Module" version="01.00.18">
<friendlyName>PowerBI Embedded Content List</friendlyName>
<description>A set of modules to embed PowerBI Embedded dashboards and reports into a DNN Platform installation.</description>
<iconFile>~/DesktopModules/MVC/PowerBIEmbedded/images/powerbi.png</iconFile>
Expand Down Expand Up @@ -45,7 +45,7 @@
<script type="Install">
<path>Providers\DataProviders\SqlDataProvider</path>
<name>01.00.07.SqlDataProvider</name>
<version>01.00.17</version>
<version>01.00.18</version>
</script>
<script type="UnInstall">
<path>Providers\DataProviders\SqlDataProvider</path>
Expand Down Expand Up @@ -162,7 +162,7 @@
</component>
</components>
</package>
<package name="PowerBIEmbeddedContent" type="Module" version="01.00.17">
<package name="PowerBIEmbeddedContent" type="Module" version="01.00.18">
<friendlyName>PowerBI Embedded Content View</friendlyName>
<description>A set of modules to embed PowerBI Embedded dashboards and reports into a DNN Platform installation.</description>
<iconFile>~/DesktopModules/MVC/PowerBIEmbedded/images/powerbi.png</iconFile>
Expand Down Expand Up @@ -217,7 +217,7 @@
</component>
</components>
</package>
<package name="PowerBIEmbeddedCalendar" type="Module" version="01.00.17">
<package name="PowerBIEmbeddedCalendar" type="Module" version="01.00.18">
<friendlyName>PowerBI Embedded Calendar View</friendlyName>
<description>A set of modules to embed PowerBI Embedded dashboards and reports into a DNN Platform installation.</description>
<iconFile>~/DesktopModules/MVC/PowerBIEmbedded/images/powerbi.png</iconFile>
Expand Down
4 changes: 2 additions & 2 deletions src/DotNetNuke.PowerBI/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("01.00.17.*")]
[assembly: AssemblyFileVersion("01.00.17.*")]
[assembly: AssemblyVersion("01.00.18.*")]
[assembly: AssemblyFileVersion("01.00.18.*")]
14 changes: 13 additions & 1 deletion src/DotNetNuke.PowerBI/Views/ListView/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,16 @@
</div>
}

</div>
</div>
<script>
window.onload = function () {
document.getElementsByClassName('scrollableList')[0].scrollTop = 0;
var menus = document.getElementsByClassName('normal');
for (var i = 0; i < menus.length; i++) {
if (menus[i].classList.contains('active')) {
document.getElementsByClassName('scrollableList')[0].scrollTop = menus[i].offsetTop;
}
}
}
</script>

0 comments on commit 38c2853

Please sign in to comment.