Skip to content

Commit

Permalink
MINOR Removed windowName() invocation from futurestate.js to reduce i…
Browse files Browse the repository at this point in the history
…ts dependencies to CMS code and allow error-less usage in fronted (fixes an IE "invalid argument" bug)
  • Loading branch information
chillu committed Jan 24, 2012
1 parent 5319ea1 commit 3d1e48a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/futurestate.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
var urlDate = dateObj.getFullYear() + '-' + pad(dateObj.getMonth()+1) + '-' + pad(dateObj.getDate());
urlDate += ' ' + pad(dateObj.getHours()) + ':' + pad(dateObj.getMinutes()) + ':00';

var w = window.open(this.href + '?futureDate=' + urlDate, windowName(this.target));
var w = window.open(this.href + '?futureDate=' + urlDate);
w.focus();

return false;
Expand Down

0 comments on commit 3d1e48a

Please sign in to comment.