source: other-projects/hathitrust/wcsa/extracted-features-solr/trunk/web-portal/HTRC_Mashup--Home_files/htrcwarnings.js@ 31601

Last change on this file since 31601 was 31601, checked in by davidb, 7 years ago

To get the look and feel of the HTRC portal web site, supporting files from a 'save as HTML' page

File size: 619 bytes
Line 
1function blacklightLoggingWarning(blacklightUrl) {
2
3 if (localStorage['dont-show-create-warning']) {
4 location.href = blacklightUrl;
5 return true;
6 }
7
8 $('#modal-wb-url').attr("href", blacklightUrl);
9 $('#create-collection-modal').modal('show');
10
11 return false;
12}
13
14function goToCreateCollection() {
15 if ($("#dont-show").is(':checked')) {
16 localStorage['dont-show-create-warning'] = true;
17 }
18
19 return true;
20}
21
22function loggingRequiredWarning(targetUrl) {
23 $('#modal-target-url').attr("href", targetUrl);
24 $('#login-required-modal').modal('show');
25
26 return false;
27}
28
Note: See TracBrowser for help on using the repository browser.