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:
commit
f3ae43d94a
1 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue