Skip to content

Commit b2be032

Browse files
committed
Moved code changes to existing script block
1 parent cd15251 commit b2be032

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

csp/gitprojectsettings.csp

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -665,18 +665,16 @@ function toggleNoFolders(e){
665665

666666
$('[id^=noFoldersSwitch]').click(toggleNoFolders);
667667

668+
// Check to persist state of no folder switches
669+
$('.mapping-input-group').children('.voca').each(function(){
670+
var currElement = $(this).children().children(".custom-control").children()[0]
671+
if(!$(currElement).hasClass("active")) {
672+
$(currElement).parent().siblings("#NoFolders")[0].value = "NoFolders";
673+
}
674+
});
668675
</script>
669676
</body>
670677
</html>
671-
<script method='OnPreHTTP' type="text/javascript">
672-
// Check to persist state of no folder switches
673-
$('.mapping-input-group').children('.voca').each(function(){
674-
var currElement = $(this).children().children(".custom-control").children()[0]
675-
if(!$(currElement).hasClass("active")) {
676-
$(currElement).parent().siblings("#NoFolders")[0].value = "NoFolders";
677-
}
678-
});
679-
</script>
680678
<script method='OnPreHTTP' language='cache' runat='server' returntype='%Boolean'>
681679
try {
682680
set %session.UseSessionCookie = 1 // Always set back to autodetect

0 commit comments

Comments
 (0)