Skip to content
Snippets Groups Projects
Commit f3ae43d9 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #420 from libasys/bugfix-share

If you using the sharing by link the array monthNames don't exist and ca...
parents 87c45b16 493ae19b
No related branches found
No related tags found
No related merge requests found
......@@ -364,6 +364,8 @@ OC.Share={
}
$(document).ready(function() {
if(typeof monthNames != 'undefined'){
$.datepicker.setDefaults({
monthNames: monthNames,
monthNamesShort: $.map(monthNames, function(v) { return v.slice(0,3)+'.'; }),
......@@ -372,7 +374,7 @@ $(document).ready(function() {
dayNamesShort: $.map(dayNames, function(v) { return v.slice(0,3)+'.'; }),
firstDay: firstDay
});
}
$('a.share').live('click', function(event) {
event.stopPropagation();
if ($(this).data('item-type') !== undefined && $(this).data('item') !== undefined) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment