Forked from chmst/gist:a825bf5edb86b04de6b865e7a112f680
Last active
April 23, 2017 14:27
-
-
Save dgrammatiko/88a1a5fda0e88ff07e0723d85118fdba to your computer and use it in GitHub Desktop.
initCalender in 3.6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var initCalendar = function() | |
{ | |
var id = $(this).attr('id'); | |
var btnId = id + "_btn"; | |
$(btnId).setAttr('data-dayformat', "%Y-%m-%d"); | |
$(btnId).setAttr('data-firstday', 1); | |
JoomlaCalendar.init( $(this).parent('.field-calendar')[0] ); | |
}; |
Author
dgrammatiko
commented
Apr 23, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment