mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 05:11:27 +00:00 
			
		
		
		
	fix clearing filename in dropfolder chooser, add document.ready()
This commit is contained in:
		
							parent
							
								
									0d1b2625de
								
							
						
					
					
						commit
						ff48af1476
					
				|  | @ -1121,9 +1121,11 @@ function folderSelected<?php echo $form ?>(id, name) { | |||
| 
 | ||||
| 	function printKeywordChooserJs($formName) { /* {{{ */ | ||||
| ?>
 | ||||
| $(document).ready(function() { | ||||
| 	$('#acceptkeywords').click(function(ev) { | ||||
| 		acceptKeywords(); | ||||
| 	}); | ||||
| }); | ||||
| <?php | ||||
| 	} /* }}} */ | ||||
| 
 | ||||
|  | @ -1197,7 +1199,7 @@ $('#acceptkeywords').click(function(ev) { | |||
| 	function printDropFolderChooserHtml($formName, $dropfolderfile="", $showfolders=0) { /* {{{ */ | ||||
| 		print "<div class=\"input-append\">\n"; | ||||
| 		print "<input readonly type=\"text\" id=\"dropfolderfile".$formName."\" name=\"dropfolderfile".$formName."\" value=\"".$dropfolderfile."\">"; | ||||
| 		print "<button type=\"button\" class=\"btn\" id=\"clearFilename".$formName."\"><i class=\"icon-remove\"></i></button>"; | ||||
| 		print "<button type=\"button\" class=\"btn\" id=\"clearfilename".$formName."\"><i class=\"icon-remove\"></i></button>"; | ||||
| 		print "<a data-target=\"#dropfolderChooser\" href=\"out.DropFolderChooser.php?form=form1&dropfolderfile=".$dropfolderfile."&showfolders=".$showfolders."\" role=\"button\" class=\"btn\" data-toggle=\"modal\">".($showfolders ? getMLText("choose_target_folder"): getMLText("choose_target_file"))."…</a>\n"; | ||||
| 		print "</div>\n"; | ||||
| ?>
 | ||||
|  | @ -1233,9 +1235,11 @@ function folderSelected(name) { | |||
| function clearFilename<?php print $formName ?>() {
 | ||||
| 	$('#dropfolderfile<?php echo $formName ?>').val(''); | ||||
| } | ||||
| $(document).ready(function() { | ||||
| 	$('#clearfilename<?php print $formName ?>').click(function(ev) { | ||||
| 		$('#dropfolderfile<?php echo $formName ?>').val(''); | ||||
| 	}); | ||||
| }); | ||||
| <?php | ||||
| 	} /* }}} */ | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann