- Renames/refactors Import and Export classes/views/JS

- Updates Import and Export to ignore trashed subscribers
- Updates tests
Closes #245
This commit is contained in:
MrCasual
2015-11-26 20:44:28 -05:00
parent 17c83c5bd4
commit 7d95b38dc4
15 changed files with 171 additions and 49 deletions

View File

@@ -20,6 +20,7 @@ define(
return;
}
jQuery(document).ready(function () {
jQuery('input[name="select_method"]').attr('checked', false);
// configure router
router = new (Backbone.Router.extend({
routes: {
@@ -299,11 +300,11 @@ define(
var test,
cleanEmail =
email
// left/right trim spaces, punctuation (e.g., " 'email@email.com'; ")
// right trim non-printable characters (e.g., "email@email.com<6F>")
// left/right trim spaces, punctuation (e.g., " 'email@email.com'; ")
// right trim non-printable characters (e.g., "email@email.com<6F>")
.replace(/^["';.,\s]+|[^\x20-\x7E]+$|["';.,_\s]+$/g, '')
// remove spaces (e.g., "email @ email . com")
// remove urlencoded characters
// remove spaces (e.g., "email @ email . com")
// remove urlencoded characters
.replace(/\s+|%\d+|,+/g, '')
.toLowerCase();
@@ -1000,7 +1001,6 @@ define(
}
function toggleNextStepButton(condition) {
console.log(condition);
var disabled = 'button-disabled';
if (condition === 'on') {
nextStepButton.removeClass(disabled);