projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Partially reverts 5594f3a9 ("jQuery.Autocomplete should be downloaded by the Makefile").
[platal.git]
/
htdocs
/
javascript
/
profile.js
diff --git
a/htdocs/javascript/profile.js
b/htdocs/javascript/profile.js
index
d59a365
..
5c25580
100644
(file)
--- a/
htdocs/javascript/profile.js
+++ b/
htdocs/javascript/profile.js
@@
-405,7
+405,7
@@
function updateCountry()
{
var val = document.forms.prof_annu.countries_sel.value;
var show = true;
{
var val = document.forms.prof_annu.countries_sel.value;
var show = true;
- if (val == '') {
+ if (val == ''
|| val == '00'
) {
show = false;
}
if (document.getElementById('countries_' + val) != null) {
show = false;
}
if (document.getElementById('countries_' + val) != null) {
@@
-420,11
+420,11
@@
function addCountry()
var val = cb.value;
var text = cb.options[cb.selectedIndex].text;
var html = '<div id="countries_' + val + '" style="clear: both; margin-bottom: 0.7em">'
var val = cb.value;
var text = cb.options[cb.selectedIndex].text;
var html = '<div id="countries_' + val + '" style="clear: both; margin-bottom: 0.7em">'
- + ' <div style="float: left; width: 50%">' + text + '</div>'
- + ' <input type="hidden" name="countries[' + val + ']" value="' + text + '" />'
- + ' <a href="javascript:removeCountry(\'' + val + '\')">'
+ + ' <a href="javascript:removeCountry(\'' + val + '\')" style="display: block; float:right">'
+ ' <img src="images/icons/cross.gif" alt="" title="Supprimer ce pays" />'
+ ' </a>'
+ ' <img src="images/icons/cross.gif" alt="" title="Supprimer ce pays" />'
+ ' </a>'
+ + ' <div style="float: left; width: 50%">' + text + '</div>'
+ + ' <input type="hidden" name="countries[' + val + ']" value="' + text + '" />'
+ '</div>';
$('#countries').append(html);
updateCountry();
+ '</div>';
$('#countries').append(html);
updateCountry();
@@
-454,6
+454,8
@@
function updateSecteur()
var secteur = document.forms.prof_annu.secteur_sel.value;
if (secteur == '') {
secteur = '-1';
var secteur = document.forms.prof_annu.secteur_sel.value;
if (secteur == '') {
secteur = '-1';
+ document.getElementById('ss_secteur_sel').innerHTML = '';
+ return;
}
$.get(platal_baseurl + 'profile/ajax/secteur/-1/' + secteur,
function(data) {
}
$.get(platal_baseurl + 'profile/ajax/secteur/-1/' + secteur,
function(data) {