profiles.js
53 lines
| 1.8 KiB
| application/javascript
|
JavascriptLexer
|
r134 | /** | |
* @author Jose Antonio Sal y Rosas Celi | |||
* @contact: jose.salyrosas@jro.igp.gob.pe, arturo.jasyrc@gmail.com | |||
*/ | |||
$(document).on('ready',function(){ | |||
$('#listProfiles').change(function() { | |||
if($(this).val() != -1){ | |||
location.href="/abscontrol/view/" + $(this).val(); | |||
} | |||
}); | |||
|
r153 | $('.activeOverJRO').click(function() { | |
|
r154 | profile_id = $('input[name=txtProfileId]').val(); | |
pattern_id = $('input[name=txtPatternId]').val(); | |||
field_Id = $(this).attr("id"); | |||
|
r201 | antenna_id = $('input[name=txtAntenna'+field_Id+'Id]').val(); | |
|
r203 | result_url = "/abscontrol/"+profile_id+"/"+pattern_id+"/overjro"+field_Id+"/"+antenna_id+"/"; | |
//location.href=url | |||
///* | |||
$.ajax({ | |||
url: result_url, | |||
|
r204 | cache: false, | |
beforeSend: function(){ | |||
}, | |||
|
r203 | success: function(){ | |
$('#PictureOverJRO'+field_Id).load(result_url); | |||
}, | |||
}); | |||
///* | |||
|
r153 | }); | |
|
r155 | $('#lnkSaveImport').click(function(){ | |
$('#frmImportProfile').submit(); | |||
}); | |||
|
r182 | $('#lnkUpload').click(function(){ | |
$('#frmImport').submit(); | |||
}); | |||
|
r156 | $('#lnkExport').click(function(){ | |
profile_id = $(this).attr("alt"); | |||
location.href="/abscontrol/export/" + profile_id + "/"; | |||
}); | |||
|
r167 | $('#lnkSendFile').click(function(){ | |
profile_id = $(this).attr("alt"); | |||
location.href="/abscontrol/send/" + profile_id + "/"; | |||
}); | |||
|
r182 | $('#lnkChangeProfile').click(function(){ | |
$('#frmProfile').submit(); | |||
}); | |||
|
r204 | $('.lnkChangePattern').click(function(){ | |
profile_id = $("input[name=txtProfileId]").val(); | |||
pattern_id = $("input[name=txtPatternId]").val(); | |||
location.href="/abscontrol/change/"+profile_id+"/"+pattern_id+"/"; | |||
}); | |||
|
r134 | }); |