summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2012-11-17 14:47:24 -0800
committerThomas Müller <thomas.mueller@tmit.eu>2012-11-17 14:47:24 -0800
commitf3ae43d94a8eff5ec1765d0f8fcc1285b08573bd (patch)
treea063e46cfdcb6dd80ffbd90ebefb4b11281de783 /core
parent87c45b1651ddd94b99ba2831070bfaabf52d316e (diff)
parent493ae19bca2cd4127471d3ac12db93a571efd76b (diff)
downloadnextcloud-server-f3ae43d94a8eff5ec1765d0f8fcc1285b08573bd.tar.gz
nextcloud-server-f3ae43d94a8eff5ec1765d0f8fcc1285b08573bd.zip
Merge pull request #420 from libasys/bugfix-share
If you using the sharing by link the array monthNames don't exist and ca...
Diffstat (limited to 'core')
-rw-r--r--core/js/share.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/js/share.js b/core/js/share.js
index 73c74a7cb6d..8fcea84af88 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -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) {