Skip to content

Commit

Permalink
target _blank bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jfernandez committed May 18, 2016
1 parent a201e46 commit 0c08b14
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ <h2 class="h4">Localization</h2>
</script>
<pre>$(id).eventCalendar({
eventsjson: 'file.json',
locales: 'json/locale.es.php'
locales: 'json/locale.es.json'
}); </pre>
</div>
</div>
Expand Down Expand Up @@ -507,4 +507,4 @@ <h2 class="h4">Open links in new window</h2>
-->
<script src="js/jquery.eventCalendar.min.js" type="text/javascript"></script>

</html>
</html>
3 changes: 1 addition & 2 deletions js/jquery.eventCalendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@
}
var eventLinkTarget = "_self";
if(eventsOpts.openEventInNewWindow) {
eventLinkTarget = '_target';
eventLinkTarget = '_blank';
}

var i = 0;
Expand Down Expand Up @@ -489,4 +489,3 @@


})( jQuery );

2 changes: 1 addition & 1 deletion js/jquery.eventCalendar.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion json/events.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
{ "date": "1338890400000", "type": "meeting", "title": "Project B meeting", "description": "Lorem Ipsum dolor set", "url": "http://www.event5.com/" },
{ "date": "1339927200000", "type": "demo", "title": "Project A demo", "description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.", "url": "http://www.event6.com/" },
{ "date": "1334656800000", "type": "meeting", "title": "Test Project C Brainstorming", "description": "Lorem Ipsum dolor set", "url": "http://www.event7.com/" }
]
]

0 comments on commit 0c08b14

Please sign in to comment.