Skip to content

Commit

Permalink
correct fix for #8
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Jun 26, 2014
1 parent ff55070 commit 0d3dcd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_moment.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
class _moment(object):
@staticmethod
def include_moment(version = '2.5.1'):
js = ''
if version is not None:
js = '<script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/%s/moment-with-langs.min.js"></script>\n' % version
js = js or ""
return Markup('''%s<script>
function flask_moment_render(elem) {
$(elem).text(eval('moment("' + $(elem).data('timestamp') + '").' + $(elem).data('format') + ';'));
Expand Down

0 comments on commit 0d3dcd8

Please sign in to comment.