Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of git@heroku.com:simple-ice-37

  • Loading branch information...
commit 4fdac4aae0cc90e9f88ccdb226060d2725bae529 2 parents 7401c35 + 2438779
@yvesvanbroekhoven yvesvanbroekhoven authored
Showing with 15 additions and 13 deletions.
  1. +15 −13 public/javascripts/application.js
View
28 public/javascripts/application.js
@@ -18,7 +18,7 @@ var switchContent = (function(sender){
var validateEmail = (function(address){
var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
- !(reg.test(address) == false);
+ return reg.test(address);
});
/*
@@ -124,16 +124,18 @@ $(document).ready(function() {
$('.clear-field').clearField();
- /*
- * Table sorter
- */
- $("table.sortable").tablesorter({textExtraction: 'complex'});
- $("table.sortable th").filter(function(idx){
- if ($(this).hasClass('sortable')) {
- return false;
- } else {
- return $(this);
- }
- }).unbind('click');
-
+ try {
+ /*
+ * Table sorter
+ */
+ $("table.sortable").tablesorter({textExtraction: 'complex'});
+ $("table.sortable th").filter(function(idx){
+ if ($(this).hasClass('sortable')) {
+ return false;
+ } else {
+ return $(this);
+ }
+ }).unbind('click');
+ } catch (e) { /* ignore */ };
+
}); // End DOM ready
Please sign in to comment.
Something went wrong with that request. Please try again.