mirror of
https://github.com/Codiad/Codiad.git
synced 2026-03-07 01:36:47 +01:00
changed comma seperated filetypes to space seperated
This commit is contained in:
@@ -115,7 +115,7 @@ switch($_GET['action']){
|
||||
<tr>
|
||||
<td width="65%">
|
||||
<label><?php i18n("File Type:"); ?></label>
|
||||
<input type="text" name="search_file_type" placeholder="comma seperated file types eg: js,c,php">
|
||||
<input type="text" name="search_file_type" placeholder="space seperated file types eg: js c php">
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
|
||||
@@ -648,7 +648,7 @@
|
||||
searchFileType=$.trim(fileExtensions);
|
||||
if (searchFileType != '') {
|
||||
//season the string to use in find command
|
||||
searchFileType = "\\(" + searchFileType.replace(/,/g, "\\|") + "\\)";
|
||||
searchFileType = "\\(" + searchFileType.replace(/\s+/g, "\\|") + "\\)";
|
||||
}
|
||||
searchType = $('#modal-content form select[name="search_type"]')
|
||||
.val();
|
||||
|
||||
Reference in New Issue
Block a user