Skip to content

Instantly share code, notes, and snippets.

@MrJaba
Created June 18, 2009 09:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MrJaba/131808 to your computer and use it in GitHub Desktop.
Save MrJaba/131808 to your computer and use it in GitHub Desktop.
//Supplier Payments Specific Javascript
VTG.SupplierPayments = {
//Method which identifies the currently selected suppliers and hides the others
addOnChangeToSupplierFilter: function(){
$("#supplier_filter").change( function () {
var selectedSupplier = $("select#supplier_filter option:selected").attr('value');
VTG.SupplierPayments.showAllBookingRows();
VTG.SupplierPayments.hideAllExceptSelectedSupplier( selectedSupplier );
VTG.SupplierPayments.showTableHeader();
VTG.SupplierPayments.addBatchPaymentControls( selectedSupplier );
})
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment