mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 05:11:27 +00:00 
			
		
		
		
	allow to set expiration date in the past
This commit is contained in:
		
							parent
							
								
									436b4a1453
								
							
						
					
					
						commit
						42f7795d5f
					
				|  | @ -72,6 +72,7 @@ $(document).ready( function() { | |||
| 		$options = array(); | ||||
| 		$options[] = array('never', getMLText('does_not_expire')); | ||||
| 		$options[] = array('date', getMLText('expire_by_date'), $expdate != ''); | ||||
| 		$options[] = array('today', getMLText('expire_today').' ('.date($df, getTsByPeriod('today', 's')).')'); | ||||
| 		$options[] = array('tomorrow', getMLText('expire_tomorrow').' ('.date($df, getTsByPeriod('tomorrow', 's')).')'); | ||||
| 		$options[] = array('1w', getMLText('expire_in_1w').' ('.date($df, getTsByPeriod('1w', 's')).')'); | ||||
| 		$options[] = array('1m', getMLText('expire_in_1m').' ('.date($df, getTsByPeriod('1m', 's')).')'); | ||||
|  | @ -92,7 +93,7 @@ $(document).ready( function() { | |||
| 		); | ||||
| 		$this->formField( | ||||
| 			getMLText("expires"), | ||||
| 			$this->getDateChooser($expdate, "expdate", $this->params['session']->getLanguage(), '', '+1d') | ||||
| 			$this->getDateChooser($expdate, "expdate", $this->params['session']->getLanguage(), '', '') // set last parameter to '+1d' if dates in the past are not allowed
 | ||||
| 		); | ||||
| 		$this->contentContainerEnd(); | ||||
| 		$this->formSubmit("<i class=\"fa fa-save\"></i> ".getMLText('save')); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann