js cible select
This commit is contained in:
parent
d4d515d313
commit
29baca787a
19
app/assets/javascripts/admin/cible.js
Normal file
19
app/assets/javascripts/admin/cible.js
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
function select_cible_from_manager(input_id){
|
||||||
|
set_busy();
|
||||||
|
|
||||||
|
manager_prompt("/admin/cibles/?manager=true",function(m_return){
|
||||||
|
|
||||||
|
$('#input_id_'+input_id).val(m_return.cible_id);
|
||||||
|
$('#input_type_'+input_id).val(m_return.cible_type);
|
||||||
|
$('#name_'+input_id).val(m_return.cible_name);
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$(document).ready(function(){
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
});
|
@ -137,6 +137,11 @@ function manager_send_image_file(image_file_id){
|
|||||||
manager_send_response({thumb : image_file_div.attr("data_thumb"), image_file_id : image_file_div.attr("data_id"), name : image_file_div.attr("data_name")});
|
manager_send_response({thumb : image_file_div.attr("data_thumb"), image_file_id : image_file_div.attr("data_id"), name : image_file_div.attr("data_name")});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function manager_send_cible(cible_id, cible_type, cible_name){
|
||||||
|
|
||||||
|
manager_send_response({cible_id : cible_id, cible_type : cible_type, cible_name : cible_name});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function manager_send_data_file(data_file_id){
|
function manager_send_data_file(data_file_id){
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user