##// END OF EJS Templates
- Estandarizando css.
- Estandarizando css.

File last commit:

r182:183
r188:189
Show More
patterns.js
37 lines | 1.3 KiB | application/javascript | JavascriptLexer
/**
* @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();
}
});
$('#lnkAdd').click(function() {
profile_id = $("#profile_id").val();
location.href = "/abscontrol/" + profile_id + "/add/";
});
$('#lnkSave').click(function() {
$('#frmPattern').submit();
});
$('#lnkCancel').click(function() {
if ($("#pattern_id").val() == 0){
location.href = "/abscontrol/edit/" + $("#profile_id").val();
}else{
//location.href="/abscontrol/" + $("#profile_id").val() + "/view/" + $("#pattern_id").val();
location.href = "/abscontrol/edit/" + $("#profile_id").val();
}
});
$('#lnkExport').click(function(){
profile_id = $(this).attr("alt");
location.href = "/abscontrol/export/" + profile_id + "/";
});
$('#lnkSendFile').click(function(){
profile_id = $(this).attr("alt");
location.href = "/abscontrol/send/" + profile_id + "/";
});
$('#lnkUpdateProfile').click(function(){
$('#frmProfile').submit();
});
});