[Pkg-owncloud-commits] [owncloud] 45/121: set minDate always to today + one day
David Prévot
taffit at moszumanska.debian.org
Thu Aug 21 16:44:30 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 493b724935c804d3329b3e4e22bc94afe41e651c
Author: Bjoern Schiessle <schiessle at owncloud.com>
Date: Fri Aug 8 11:09:17 2014 +0200
set minDate always to today + one day
---
core/js/share.js | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/core/js/share.js b/core/js/share.js
index 1b4e519..eceb6b9 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -724,8 +724,11 @@ OC.Share={
*/
showExpirationDate:function(date, shareTime) {
var now = new Date();
+ // min date should always be the next day
+ var minDate = new Date();
+ minDate.setDate(minDate.getDate()+1);
var datePickerOptions = {
- minDate: now,
+ minDate: minDate,
maxDate: null
};
if (_.isNumber(shareTime)) {
@@ -757,6 +760,9 @@ OC.Share={
$(document).ready(function() {
if(typeof monthNames != 'undefined'){
+ // min date should always be the next day
+ var minDate = new Date();
+ minDate.setDate(minDate.getDate()+1);
$.datepicker.setDefaults({
monthNames: monthNames,
monthNamesShort: $.map(monthNames, function(v) { return v.slice(0,3)+'.'; }),
@@ -764,7 +770,7 @@ $(document).ready(function() {
dayNamesMin: $.map(dayNames, function(v) { return v.slice(0,2); }),
dayNamesShort: $.map(dayNames, function(v) { return v.slice(0,3)+'.'; }),
firstDay: firstDay,
- minDate : new Date()
+ minDate : minDate
});
}
$(document).on('click', 'a.share', function(event) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list