mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-11 12:01:23 +01:00
Doc: More comments
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2005-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
// Copyright (C) 2005-2013 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
// Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com>
|
// Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com>
|
||||||
//
|
//
|
||||||
// This program is free software; you can redistribute it and/or modify
|
// This program is free software; you can redistribute it and/or modify
|
||||||
@@ -290,8 +290,10 @@ function loadXMLDoc(url,readyStateFunction,async)
|
|||||||
return req;
|
return req;
|
||||||
}
|
}
|
||||||
|
|
||||||
// To hide/show select Boxes with IE6 (and only IE6 because IE6 has a bug and
|
/* To hide/show select Boxes with IE6 (and only IE6 because IE6 has a bug and
|
||||||
// not put popup completely on the front)
|
* not put popup completely on the front)
|
||||||
|
* Used only bu popup calendar
|
||||||
|
*/
|
||||||
function hideSelectBoxes() {
|
function hideSelectBoxes() {
|
||||||
var brsVersion = parseInt(window.navigator.appVersion.charAt(0), 10);
|
var brsVersion = parseInt(window.navigator.appVersion.charAt(0), 10);
|
||||||
if (brsVersion <= 6 && window.navigator.userAgent.indexOf("MSIE 6") > -1)
|
if (brsVersion <= 6 && window.navigator.userAgent.indexOf("MSIE 6") > -1)
|
||||||
@@ -304,6 +306,10 @@ function hideSelectBoxes() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* To hide/show select Boxes with IE6 (and only IE6 because IE6 has a bug and
|
||||||
|
* not put popup completely on the front)
|
||||||
|
* Used only bu popup calendar
|
||||||
|
*/
|
||||||
function displaySelectBoxes() {
|
function displaySelectBoxes() {
|
||||||
var brsVersion = parseInt(window.navigator.appVersion.charAt(0), 10);
|
var brsVersion = parseInt(window.navigator.appVersion.charAt(0), 10);
|
||||||
if (brsVersion <= 6 && window.navigator.userAgent.indexOf("MSIE 6") > -1)
|
if (brsVersion <= 6 && window.navigator.userAgent.indexOf("MSIE 6") > -1)
|
||||||
@@ -354,9 +360,7 @@ function formatDate(date,format)
|
|||||||
c=format.charAt(i); // Recupere char du format
|
c=format.charAt(i); // Recupere char du format
|
||||||
substr="";
|
substr="";
|
||||||
j=i;
|
j=i;
|
||||||
while ((format.charAt(j)==c) && (j < format.length)) // Recupere char
|
while ((format.charAt(j)==c) && (j < format.length)) // Recupere char successif identiques
|
||||||
// successif
|
|
||||||
// identiques
|
|
||||||
{
|
{
|
||||||
substr += format.charAt(j++);
|
substr += format.charAt(j++);
|
||||||
}
|
}
|
||||||
@@ -623,8 +627,9 @@ function hideMessage(fieldId,message) {
|
|||||||
if (textbox.value == message) textbox.value = '';
|
if (textbox.value == message) textbox.value = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
* TODO Used by admin page only ?
|
||||||
*/
|
*/
|
||||||
function setConstant(url, code, input, entity) {
|
function setConstant(url, code, input, entity) {
|
||||||
$.get( url, {
|
$.get( url, {
|
||||||
@@ -679,7 +684,7 @@ function setConstant(url, code, input, entity) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
* TODO Used by admin page only ?
|
||||||
*/
|
*/
|
||||||
function delConstant(url, code, input, entity) {
|
function delConstant(url, code, input, entity) {
|
||||||
$.get( url, {
|
$.get( url, {
|
||||||
@@ -733,7 +738,7 @@ function delConstant(url, code, input, entity) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
* TODO Used by admin page only ?
|
||||||
*/
|
*/
|
||||||
function confirmConstantAction(action, url, code, input, box, entity, yesButton, noButton) {
|
function confirmConstantAction(action, url, code, input, box, entity, yesButton, noButton) {
|
||||||
var boxConfirm = box;
|
var boxConfirm = box;
|
||||||
@@ -784,7 +789,9 @@ function confirmConstantAction(action, url, code, input, box, entity, yesButton,
|
|||||||
/*
|
/*
|
||||||
* =================================================================
|
* =================================================================
|
||||||
* This is to allow to transform all select box into ajax autocomplete box
|
* This is to allow to transform all select box into ajax autocomplete box
|
||||||
* with just one line: $(function() { $( "#idofmylist" ).combobox(); });
|
* with just one line:
|
||||||
|
* $(function() { $( "#idofmylist" ).combobox(); });
|
||||||
|
* Do not use it on large combo boxes
|
||||||
* =================================================================
|
* =================================================================
|
||||||
*/
|
*/
|
||||||
(function( $ ) {
|
(function( $ ) {
|
||||||
@@ -894,6 +901,8 @@ function confirmConstantAction(action, url, code, input, box, entity, yesButton,
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Timer for delayed keyup function
|
* Timer for delayed keyup function
|
||||||
|
*
|
||||||
|
* TODO Who use this ?
|
||||||
*/
|
*/
|
||||||
(function($){
|
(function($){
|
||||||
$.widget("ui.onDelayedKeyup", {
|
$.widget("ui.onDelayedKeyup", {
|
||||||
|
|||||||
@@ -17,11 +17,11 @@
|
|||||||
*
|
*
|
||||||
* Javascript code to activate drag and drop on lines
|
* Javascript code to activate drag and drop on lines
|
||||||
* You can use this if you want to be abale to drag and drop rows of a table.
|
* You can use this if you want to be abale to drag and drop rows of a table.
|
||||||
* You must add id="tablelines" ont table level tag and have count($object->lines) or count($taskarray) > 0
|
* You must add id="tablelines" ont table level tag and have count($object->lines) or count($taskarray) > 0
|
||||||
*/
|
*/
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- BEGIN PHP TEMPLATE FOR JQUERY -->
|
<!-- BEGIN PHP TEMPLATE AJAXROW.TPL.PHP -->
|
||||||
<?php
|
<?php
|
||||||
$id=$object->id;
|
$id=$object->id;
|
||||||
$fk_element=$object->fk_element;
|
$fk_element=$object->fk_element;
|
||||||
@@ -84,4 +84,4 @@ $(document).ready(function(){
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<!-- END PHP TEMPLATE -->
|
<!-- END PHP TEMPLATE AJAXROW.TPL.PHP -->
|
||||||
Reference in New Issue
Block a user