Skip to content
This repository has been archived by the owner on Aug 16, 2018. It is now read-only.

Commit

Permalink
source of safari error detected
Browse files Browse the repository at this point in the history
  • Loading branch information
nicrausaz committed Mar 2, 2017
1 parent 7dbe633 commit 330daae
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
3 changes: 2 additions & 1 deletion form.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<option value="interactiveMediaDesigner" <?php echo ($_SESSION['postedForm']['job'] == "interactiveMediaDesigner") ? "selected" : ''; ?>>Interactive Media Designer CFC</option>
</select>
</fieldset>
<div id="all" style="display: none;">
<div id="all" style="">
<fieldset>
<div id="infoOnly">
<?php include('templates/filieresinfos.php') ?>
Expand Down Expand Up @@ -238,6 +238,7 @@
<p></p>
<section id="formatErrorZone1"></section>
</div>

<label for="idCard">Copie carte d'indentité / passeport:*</label>
<div class="tooltip">
<label class="file" title="" id="idCardLabel">
Expand Down
6 changes: 3 additions & 3 deletions helpers.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
function mailToResp($surname, $name, $job){
require_once("templates/mailToResp.php");
mail($to, $subject, $message, $headers);
//mail($to, $subject, $message, $headers);
}

//vire les accents et remplace caractere non alphanumeric par '-'
Expand All @@ -15,12 +15,12 @@ function checkChars($toCheck){

function mailToApprenti($to, $job){
require_once("templates/mailToApp.php");
mail($to, $subject, $message, $headers);
//mail($to, $subject, $message, $headers);
}

function uploadFile(&$candidateData, $pathAnnexes, $file, $name){
$extension = strrchr($file['name'], '.');
$validExt = ['.pdf', '.jpeg', '.png', '.PDF', '.PNG'];
$validExt = ['.pdf', '.jpeg', '.png', '.PDF', '.PNG', '.JPEG'];
$filename = $name . $extension;

//-> dataValidator
Expand Down
6 changes: 3 additions & 3 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ function clearFileInput(fileInput) {
fileInput.type = 'file';
}
function clearFiles() {
$("#files input").each(function (input) {
clearFileInput(this);
});
// $("#files input").each(function (input) {
// clearFileInput(this);
// });
}
5 changes: 4 additions & 1 deletion style/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ label.file input {

label.file {
width: 0%;
/* Use for fluid design */
min-width: 300px;
height: 30px;
line-height: 26px!important;
Expand Down Expand Up @@ -397,4 +396,8 @@ label:hover:before {
.tooltip-right {
top: 0;
left: 103%;
}

#test {

}

0 comments on commit 330daae

Please sign in to comment.