Merge pull request #2005 from Georgetown-University-Libraries/ds3835r5

[DS-3835] Port PR 1951 to 5x
This commit is contained in:
Tim Donohue
2018-04-02 10:10:54 -05:00
committed by GitHub
2 changed files with 12 additions and 0 deletions

View File

@@ -262,6 +262,12 @@
mainForm.find('input[name="' + param + '"]').val(value); mainForm.find('input[name="' + param + '"]').val(value);
} }
//DS-3835 ensure that the current scope is passed as form field "scope"
mainForm.find('input[name="current-scope"]')
.val($('select[name="scope"]').val())
.attr("name","scope");
//Clear the page param //Clear the page param
mainForm.find('input[name="page"]').val('1'); mainForm.find('input[name="page"]').val('1');

View File

@@ -57,6 +57,12 @@
mainForm.find('input[name="' + param + '"]').val(value); mainForm.find('input[name="' + param + '"]').val(value);
} }
//DS-3835 ensure that the current scope is passed as form field "scope"
mainForm.find('input[name="current-scope"]')
.val($('select[name="scope"]').val())
.attr("name","scope");
//Clear the page param //Clear the page param
mainForm.find('input[name="page"]').val('1'); mainForm.find('input[name="page"]').val('1');