]> source.dussan.org Git - nextcloud-server.git/commitdiff
If you using the sharing by link the array monthNames don't exist and causes errors...
authorlibasys <sebastian.doell@libasys.de>
Wed, 14 Nov 2012 15:47:52 +0000 (16:47 +0100)
committerlibasys <sebastian.doell@libasys.de>
Wed, 14 Nov 2012 15:47:52 +0000 (16:47 +0100)
core/js/share.js

index 73c74a7cb6d5e66d49712e9058bb310e598cd193..8fcea84af88fc2be832ff873696b98e222b8f9d2 100644 (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) {