Merge pull request #420 from libasys/bugfix-share

If you using the sharing by link the array monthNames don't exist and ca...
remotes/origin/stable5
Thomas Müller 13 years ago
commit f3ae43d94a
  1. 4
      core/js/share.js

@ -364,6 +364,8 @@ OC.Share={
} }
$(document).ready(function() { $(document).ready(function() {
if(typeof monthNames != 'undefined'){
$.datepicker.setDefaults({ $.datepicker.setDefaults({
monthNames: monthNames, monthNames: monthNames,
monthNamesShort: $.map(monthNames, function(v) { return v.slice(0,3)+'.'; }), 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)+'.'; }), dayNamesShort: $.map(dayNames, function(v) { return v.slice(0,3)+'.'; }),
firstDay: firstDay firstDay: firstDay
}); });
}
$('a.share').live('click', function(event) { $('a.share').live('click', function(event) {
event.stopPropagation(); event.stopPropagation();
if ($(this).data('item-type') !== undefined && $(this).data('item') !== undefined) { if ($(this).data('item-type') !== undefined && $(this).data('item') !== undefined) {

Loading…
Cancel
Save