Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
accounting
sublima
Commits
c22e228fa53c
Commit
469bf5db
authored
Jul 04, 2017
by
francescoB
Browse files
funzion get_destinazionemerge out of document ready commented
--HG-- branch : francesco-dev
parent
a5abdfa65b3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
tpl/pg/addedit/documento/_ae_documento.js
View file @
c22e228f
...
...
@@ -374,31 +374,31 @@ function quantitageneraleFormatter(data) {
// castellettoRiepiloghi()
// }
/**
* get_destinazionemerce() dato l'id del cliente, esegue una chiamata per ottenere da destianzione della merce
* @param idCliente l'id del cliente
*/
function
get_destinazionemerce
(
idCliente
)
{
$
(
"
#id_destinazione_merce
"
).
html
(
'
<option><option>
'
);
$
.
get
(
"
/pg/as_DestinazioneMerce/GetData
"
,
{
'
idCliente
'
:
idCliente
},
function
(
data
)
{
data
=
$
.
parseJSON
(
data
);
// la variabile data è sempre valorizzata?
// è utile verificare se esiste prima di lanciare un messaggio?
//riempie la select con i dati ottenuti
$
(
"
#id_destinazione_merce
"
).
select2
({
allowClear
:
true
,
placeholder
:
""
,
width
:
"
100%
"
,
minimumResultsForSearch
:
Infinity
,
language
:
"
it
"
,
theme
:
"
bootstrap
"
,
"
data
"
:
data
},
true
,
true
);
return
data
});
}
//
/**
//
* get_destinazionemerce() dato l'id del cliente, esegue una chiamata per ottenere da destianzione della merce
//
* @param idCliente l'id del cliente
//
*/
//
function get_destinazionemerce(idCliente) {
//
//
$("#id_destinazione_merce").html('<option><option>');
//
$.get("/pg/as_DestinazioneMerce/GetData", {'idCliente':idCliente}, function( data ) {
//
data = $.parseJSON(data);
//
// la variabile data è sempre valorizzata?
//
// è utile verificare se esiste prima di lanciare un messaggio?
//
//riempie la select con i dati ottenuti
//
//
$("#id_destinazione_merce").select2({
//
allowClear: true,
//
placeholder: "",
//
width:"100%",
//
minimumResultsForSearch: Infinity,
//
language:"it",
//
theme: "bootstrap",
//
"data":data
//
}, true, true);
//
return data
//
});
//
}
//FINE SPOSTAMENTO FUNZIONE INTERNE AL DOCUMENT READY
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment