Prive les anonymes de l'email prestataire
* hangouts.xml: WIP Hangouts * yavsc.rate.js: Fixe l'usage de la souris pour positionner les étoiles de 0 à 5. WIP labels * Performer.ascx: Prive les utilisateur anonymes de l'e-mail des préstataires * Yavsc.csproj: ajoute l'Xml Hangouts * PerformerProfile.cs: Ajoute la propriété "titre du blog" `BlogTitle` du profile préstataire * LocalizedText.resx: * LocalizedText.fr.resx: * LocalizedText.Designer.cs: * LocalizedText.fr.Designer.cs: internationalisation
This commit is contained in:
parent
986b78be3c
commit
1b1a2ab557
11 changed files with 91 additions and 20 deletions
|
|
@ -4,7 +4,8 @@
|
|||
options: {
|
||||
webTarget: null,
|
||||
jsTarget: null,
|
||||
disabled: false
|
||||
disabled: false,
|
||||
labels: [ 'médiocre','passable','moyen','bon', 'très bon' ,'excellent', 'parfait'],
|
||||
},
|
||||
sendRate: function (rating,callback) {
|
||||
if (this.options.webTarget)
|
||||
|
|
@ -29,7 +30,7 @@
|
|||
// depending on padding & mergin on the $ratectl node,
|
||||
// when it's a span, and there is a line return within,
|
||||
// the values on second star line are false.
|
||||
// time to sanitize
|
||||
// Time to sanitize:
|
||||
x = Math.ceil(x);
|
||||
if (x<0) x = 0;
|
||||
if (x>100) x = 100;
|
||||
|
|
@ -39,7 +40,8 @@
|
|||
});
|
||||
},
|
||||
updateRate: function (ctl,rate) {
|
||||
var rounded = Math.round(rate / 10);
|
||||
// Using 10 half stars, it makes 11 choices (from 0 to 10)
|
||||
var rounded = Math.round(rate / 11);
|
||||
var HasHalf = (rounded % 2 == 1);
|
||||
var NbFilled = Math.floor(rounded / 2);
|
||||
var NbEmpty = (5 - NbFilled) - ((HasHalf)?1:0) ;
|
||||
|
|
@ -51,6 +53,8 @@
|
|||
ctl.append('<i class="fa fa-star-half-o"></i>');
|
||||
for (var j=0; j<NbEmpty; j++, i++ )
|
||||
ctl.append('<i class="fa fa-star-o"></i>');
|
||||
|
||||
ctl.append
|
||||
},
|
||||
})})(jQuery);
|
||||
}).call(this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue