Skip to content
Extraits de code Groupes Projets
Valider 3e9c2757 rédigé par marcimat's avatar marcimat
Parcourir les fichiers

Suppression de code JS non utilisé

parent ba8bea95
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
// Barre de raccourcis
// derive du:
// bbCode control by subBlue design : www.subBlue.com
// Startup variables
var theSelection = false;
// Check for Browser & Platform for PC & IE specific bits
// More details from: http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html
var clientPC = navigator.userAgent.toLowerCase(); // Get client info
var clientVer = parseInt(navigator.appVersion); // Get browser version
var is_ie = ((clientPC.indexOf("msie") != -1) && (clientPC.indexOf("opera") == -1));
var is_nav = ((clientPC.indexOf('mozilla')!=-1) && (clientPC.indexOf('spoofer')==-1)
&& (clientPC.indexOf('compatible') == -1) && (clientPC.indexOf('opera')==-1)
&& (clientPC.indexOf('webtv')==-1) && (clientPC.indexOf('hotjava')==-1));
var is_moz = 0;
var is_win = ((clientPC.indexOf("win")!=-1) || (clientPC.indexOf("16bit") != -1));
var is_mac = (clientPC.indexOf("mac")!=-1);
function barre_inserer(text,champ) {
var txtarea = champ;
......@@ -43,17 +22,6 @@ function barre_inserer(text,champ) {
}
// Shows the help messages in the helpline window
function helpline(help, champ) {
champ.value = help;
}
function setCaretToEnd (input) {
setSelectionRange(input, input.value.length, input.value.length);
}
function setSelectionRange(input, selectionStart, selectionEnd) {
if (input.setSelectionRange) {
input.focus();
......@@ -101,10 +69,3 @@ function mozWrap(txtarea, open, close)
return;
}
// Insert at Claret position. Code from
// http://www.faqts.com/knowledge_base/view.phtml/aid/1052/fid/130
function storeCaret (textEl) {
if (textEl.createTextRange)
textEl.caretPos = document.selection.createRange().duplicate();
}
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter