Merge pull request #420 from libasys/bugfix-share

If you using the sharing by link the array monthNames don't exist and ca...
This commit is contained in:
Thomas Müller 2012-11-17 14:47:24 -08:00
commit f3ae43d94a
1 changed files with 3 additions and 1 deletions

View File

@ -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) {