Update Send method
This commit is contained in:
parent
204abd0abe
commit
011a21702b
@ -39,7 +39,7 @@ $(document).ready(function(){
|
||||
var values = [];
|
||||
if (list.length>0) {
|
||||
list.each(function(){
|
||||
console.log($(this).data('value'));
|
||||
//console.log($(this).data('value'));
|
||||
values.push($(this).data('value'));
|
||||
});
|
||||
}
|
||||
@ -88,12 +88,9 @@ $(document).ready(function(){
|
||||
Valider: function() {
|
||||
var key = $('div.jstree').attr('id');
|
||||
var elements = [];
|
||||
console.log($('div.jstree').jstree().get_top_selected());
|
||||
|
||||
/*$('div.jstree').jstree("get_checked").each(function(){
|
||||
elements.push(this.id);
|
||||
});
|
||||
set(key, elements.join(","));*/
|
||||
//console.log($('div.jstree').jstree().get_top_selected());
|
||||
elements = $('div.jstree').jstree().get_top_selected();
|
||||
set(key, elements.join(","));
|
||||
$(this).dialog('close');
|
||||
},
|
||||
Fermer: function() { $(this).dialog('close'); }
|
||||
@ -108,7 +105,7 @@ $(document).ready(function(){
|
||||
|
||||
function set(key, value, ex) {
|
||||
ex = typeof ex !== 'undefined' ? ex : 0;
|
||||
$('#panel').html('<span class="glyphicon glyphicon-refresh img-rounded"></span>');
|
||||
$('div#panel div.sidebar').html('<span class="glyphicon glyphicon-refresh img-rounded"></span>');
|
||||
var isCount = false;
|
||||
$.post('/comptage/index', { cle:key, valeur:value, exclude:ex }, function(data, status) {
|
||||
if (data.error==1) {
|
||||
|
Loading…
Reference in New Issue
Block a user