Skip to content

Commit

Permalink
pre-populate fields
Browse files Browse the repository at this point in the history
  • Loading branch information
SoniaRuiz committed Jan 27, 2021
1 parent 14c5c60 commit 458a380
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 5 deletions.
Binary file modified .vs/CoExp_Web/v16/.suo
Binary file not shown.
2 changes: 1 addition & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static void Main(string[] args)
{
CreateWebHostBuilder(args)
//Change here the environment. Possible values: "Production", "Development", "Private", "Docker"
.UseEnvironment("Development")
.UseEnvironment("Production")
.Build()
.Run();
}
Expand Down
12 changes: 11 additions & 1 deletion Views/Run/Catalogue.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,13 @@
]
});
intro.onbeforechange(function (targetElement) {
if (targetElement.id == "step1") {
$('#category_dropdown').val('10UKBEC').change();
$('#category_dropdown')
.prop("disabled", false)
.selectpicker('refresh');
}
if (targetElement.id == "step2" && $("#category_dropdown").val() == "10UKBEC") {
$('#network_dropdown').val('SNIG').change();
$('#network_dropdown')
Expand All @@ -216,6 +222,10 @@
var doneTourCatalogue = sessionStorage.getItem('EventTourCatalogue') === 'Completed';
if (doneTourCatalogue) {
$('#category_dropdown').val('10UKBEC').change();
$('#category_dropdown')
.prop("disabled", false)
.selectpicker('refresh');
return;
}
else {
Expand Down
2 changes: 1 addition & 1 deletion Views/Run/Help_Plot.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<img src="~/images/help/plot.PNG"
alt="Available categories" title="Fig1: Available categories." />
</div><br /><br />
<p><span class="glyphicon glyphicon-chevron-right"></span><b>Previous tutorial: </b><a asp-area="" asp-controller="Run" asp-action="Help_Annotation">Gene Set Annotation</a></p><br />
<p><span class="glyphicon glyphicon-chevron-left"></span><b>Previous tutorial: </b><a asp-area="" asp-controller="Run" asp-action="Help_Annotation">Gene Set Annotation</a></p><br />
</div>
</div>
</div>
Expand Down
11 changes: 10 additions & 1 deletion Views/Run/Plot.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,12 @@
]
});
intro.onbeforechange(function (targetElement) {
if (targetElement.id == "step1") {
$('#category_dropdown').val('10UKBEC').change();
$('#category_dropdown')
.prop("disabled", false)
.selectpicker('refresh');
}
if (targetElement.id == "step2" && $("#category_dropdown").val() == "10UKBEC") {
$('#network_dropdown').val('SNIG').change();
$('#network_dropdown')
Expand Down Expand Up @@ -194,6 +199,10 @@
});
var doneTourPlot = sessionStorage.getItem('EventTourPlot') === 'Completed';
if (doneTourPlot) {
$('#category_dropdown').val('10UKBEC').change();
$('#category_dropdown')
.prop("disabled", false)
.selectpicker('refresh');
return;
}
else {
Expand Down
Binary file modified obj/Debug/netcoreapp2.1/CoExp_Web.Views.dll
Binary file not shown.
Binary file modified obj/Debug/netcoreapp2.1/CoExp_Web.csprojAssemblyReference.cache
Binary file not shown.
Binary file modified obj/Debug/netcoreapp2.1/CoExp_Web.dll
Binary file not shown.
Binary file modified obj/Debug/netcoreapp2.1/CoExp_Web.pdb
Binary file not shown.
3 changes: 2 additions & 1 deletion wwwroot/js/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,9 @@ API.prototype.getNetworkCategories = function (category) {
$('#category_dropdown')
.append(option);
}
$('#category_dropdown').val('10UKBEC').change();
$('#category_dropdown')
.val('10UKBEC')
.change()
.selectpicker('refresh')
startIntro()
}
Expand Down

0 comments on commit 458a380

Please sign in to comment.