Skip to content

Commit

Permalink
Update alertify JS library to latest version.
Browse files Browse the repository at this point in the history
  • Loading branch information
desilinguist committed May 16, 2019
1 parent 7102133 commit 110188a
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 169 deletions.
16 changes: 8 additions & 8 deletions _pages/program/schedule.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Conference Schedule
layout: schedule
excerpt: "NAACL 2019 conference schedule."
permalink: /schedule/
permalink: /schedule
sidebar: false
script: |
<script type="text/javascript">
Expand Down Expand Up @@ -519,11 +519,11 @@ script: |
/* the include plenary checkbox is checked on startup */
$('input#includePlenaryCheckBox').prop('checked', true);
/* show the help window whenever "?" is pressed */
/* show the help window whenever "?" is pressed and close it when "Esc" is pressed */
$(document).keypress(function(event) {
if (doWhichKey(event) == 63 && !helpShown) {
helpShown = true;
alertify.alert(instructions, function(event) { helpShown = false;});
alertify.alert('', instructions, function(event) { helpShown = false;}).set('transition', 'fade');
}
});
Expand All @@ -532,7 +532,7 @@ script: |
if (!helpShown) {
event.preventDefault();
helpShown = true;
alertify.alert(instructions, function(event) { helpShown = false;});
alertify.alert('', instructions, function(event) { helpShown = false;}).set('transition', 'fade');
}
});
Expand Down Expand Up @@ -811,11 +811,11 @@ script: |
var numChosenItems = Object.keys(chosenPapersHash).length + Object.keys(chosenTutorialsHash).length + Object.keys(chosenWorkshopsHash).length + Object.keys(chosenPostersHash).length;
if (numChosenItems == 0) {
if (includePlenaryInSchedule) {
alertify.confirm("The PDF will contain only the plenary sessions since nothing was chosen. Proceed?", function () { generatePDFfromTable();
}, function() { return false; });
alertify.confirm('', 'The PDF will contain only the plenary sessions since nothing was chosen. Proceed?', function () { generatePDFfromTable();
}, function() { }).setting({'transition': 'fade', 'defaultFocus': 'cancel'});
}
else {
alertify.alert('Nothing to generate. Nothing was chosen and plenary sessions were excluded.');
alertify.alert('', 'Nothing to generate. Nothing was chosen and plenary sessions were excluded.').set('transition', 'fade');
return false;
}
}
Expand Down Expand Up @@ -977,7 +977,7 @@ script: |
});
</script>
---
<link rel="stylesheet" href="/assets/css/alertify.css" id="alertifyCSS">
<link rel="stylesheet" href="/assets/css/alertify.min.css" id="alertifyCSS">
<table id="hidden-program-table">
<thead>
<tr><th>time</th><th>location</th><th>info</th></tr></thead>
Expand Down
139 changes: 0 additions & 139 deletions assets/css/alertify.css

This file was deleted.

6 changes: 6 additions & 0 deletions assets/css/alertify.min.css

Large diffs are not rendered by default.

27 changes: 14 additions & 13 deletions assets/js/main.min.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion assets/js/vendor/alertify/alertify.js

This file was deleted.

3 changes: 3 additions & 0 deletions assets/js/vendor/alertify/alertify.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"uglify-js": "^2.6.1"
},
"scripts": {
"uglify": "uglifyjs assets/js/vendor/jquery/jquery-3.3.1.min.js assets/js/plugins/jquery.fitvids.js assets/js/plugins/jquery.greedy-navigation.js assets/js/plugins/jquery.magnific-popup.js assets/js/plugins/jquery.smooth-scroll.min.js assets/js/vendor/jspdf/jspdf.min.js assets/js/plugins/jspdf.plugin.autotable.min.js assets/js/vendor/ascii-folder.js assets/js/vendor/alertify/alertify.js assets/js/_main.js -c -m -o assets/js/main.min.js",
"uglify": "uglifyjs assets/js/vendor/jquery/jquery-3.3.1.min.js assets/js/plugins/jquery.fitvids.js assets/js/plugins/jquery.greedy-navigation.js assets/js/plugins/jquery.magnific-popup.js assets/js/plugins/jquery.smooth-scroll.min.js assets/js/vendor/jspdf/jspdf.min.js assets/js/plugins/jspdf.plugin.autotable.min.js assets/js/vendor/ascii-folder.js assets/js/vendor/alertify/alertify.min.js assets/js/_main.js -c -m -o assets/js/main.min.js",
"add-banner": "node banner.js",
"watch:js":
"onchange \"assets/js/**/*.js\" -e \"assets/js/main.min.js\" -- npm run build:js",
Expand Down
Loading

0 comments on commit 110188a

Please sign in to comment.