fixed git ignore
This commit is contained in:
@@ -16,15 +16,15 @@ var MUsulTJSLPJS = {
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
$('#butKEC').click(function(){
|
||||
$('#butKEC').click(() => {
|
||||
if ($('#KecID').val()>0) this.show_hide(1);
|
||||
}.bind(this));
|
||||
$('#butKEL').click(function(){
|
||||
});
|
||||
$('#butKEL').click(() => {
|
||||
if ($('#KelID').val()>0) this.show_hide(2);
|
||||
}.bind(this));
|
||||
$('#butBEL').click(function(){
|
||||
});
|
||||
$('#butBEL').click(() => {
|
||||
if ($('#BelID').val()>0) this.show_hide(3);
|
||||
}.bind(this));
|
||||
});
|
||||
this.show_hide(1);
|
||||
},
|
||||
|
||||
@@ -80,11 +80,11 @@ var MUsulTJSLPJS = {
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-keg','mode_detail='+mode,'Hak_Usulan','UsulanLID='+ID],
|
||||
onSuccess: function(ajson){
|
||||
onSuccess: (ajson) => {
|
||||
var tombol = [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}];
|
||||
if ($('#Hak_Usulan').val()==0) tombol.pop();
|
||||
this.winDKeg = FoniaJS.showWindow('DKeg', 'Detail Usulan Kegiatan Desa', ajson.html, 'xl', tombol, function(){
|
||||
$('#winDKeg').find('#butWSimpan').click(function(){this.keg_simpan();}.bind(this));
|
||||
this.winDKeg = FoniaJS.showWindow('DKeg', 'Detail Usulan Kegiatan Desa', ajson.html, 'xl', tombol, () => {
|
||||
$('#winDKeg').find('#butWSimpan').click(() => this.keg_simpan());
|
||||
$('#formUsulDesa').validate({
|
||||
rules: {
|
||||
required: true,
|
||||
@@ -94,8 +94,8 @@ var MUsulTJSLPJS = {
|
||||
Rupiah: {required:true, double_id:true}
|
||||
}
|
||||
});
|
||||
}.bind(this));
|
||||
}.bind(this)
|
||||
});
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
@@ -108,15 +108,13 @@ var MUsulTJSLPJS = {
|
||||
},
|
||||
|
||||
keg_hapus: function(acell){
|
||||
FoniaJS.showConfirm('Konfirmasi', 'Hapus usulan <b>"'+acell[2]+'"</b> ?', function(){
|
||||
FoniaJS.showConfirm('Konfirmasi', 'Hapus usulan <b>"'+acell[2]+'"</b> ?', () => {
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-keg','mode_detail=delete','Hak_Usulan','KecID','KelID','BelID','UsulanLID='+acell[0]],
|
||||
onSuccess: function(adata){
|
||||
FoniaJS.showInfo('Proses hapus data sukses!');
|
||||
}.bind(this)
|
||||
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
||||
}).send();
|
||||
}.bind(this), 'danger');
|
||||
}, 'danger');
|
||||
},
|
||||
|
||||
keg_simpan: function(){
|
||||
@@ -125,10 +123,10 @@ var MUsulTJSLPJS = {
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-keg','mode_detail','Hak_Usulan','OPDID','KecID','KelID','BelID','UsulanLID','Lokasi','Dusun','RT','Masalah','Usulan','Sasaran','Waktu','Volume','SatuanID','Rupiah'],
|
||||
onSuccess: function(){
|
||||
onSuccess: () => {
|
||||
FoniaJS.closeWindow(this.winDKeg);
|
||||
FoniaJS.showInfo('Sukses menyimpan Usulan Kegiatan.');
|
||||
}.bind(this)
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user