[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[3729] branches/1.3/UI/payments
- Subject: SF.net SVN: ledger-smb:[3729] branches/1.3/UI/payments
- From: ..hidden..
- Date: Thu, 22 Sep 2011 16:43:11 +0000
Revision: 3729
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=3729&view=rev
Author: einhverfr
Date: 2011-09-22 16:43:11 +0000 (Thu, 22 Sep 2011)
Log Message:
-----------
Select/unselect all checkbox added for payment/receipt batch screens
Modified Paths:
--------------
branches/1.3/UI/payments/payments.css
branches/1.3/UI/payments/payments_detail.html
branches/1.3/UI/payments/payments_detail.js
Modified: branches/1.3/UI/payments/payments.css
===================================================================
--- branches/1.3/UI/payments/payments.css 2011-09-22 15:49:18 UTC (rev 3728)
+++ branches/1.3/UI/payments/payments.css 2011-09-22 16:43:11 UTC (rev 3729)
@@ -4,3 +4,7 @@
table.detail_table_hidden{
display: none;
}
+
+div.selectall {
+ float: left;
+}
Modified: branches/1.3/UI/payments/payments_detail.html
===================================================================
--- branches/1.3/UI/payments/payments_detail.html 2011-09-22 15:49:18 UTC (rev 3728)
+++ branches/1.3/UI/payments/payments_detail.html 2011-09-22 16:43:11 UTC (rev 3729)
@@ -191,7 +191,14 @@
</div>
<table id="payments-table">
<tr class="listheading">
- <th class="account"><?lsmb text('Account') ?></th>
+ <th class="account"><div class="selectall">
+ <?lsmb INCLUDE input element_data = {
+ id = 'checkbox-selectall'
+ name = 'selectall'
+ class = 'selectall'
+ value = 0
+ type = 'checkbox'
+ } ?></div><?lsmb text('Account') ?></th>
<th class="entity_name"><?lsmb text('Name') ?></th>
<th class="invoice"><?lsmb text('Invoice Total') ?></th>
<th class="payment"><?lsmb text('Payment') ?></th>
Modified: branches/1.3/UI/payments/payments_detail.js
===================================================================
--- branches/1.3/UI/payments/payments_detail.js 2011-09-22 15:49:18 UTC (rev 3728)
+++ branches/1.3/UI/payments/payments_detail.js 2011-09-22 16:43:11 UTC (rev 3729)
@@ -36,6 +36,16 @@
table.className = 'detail_table_hidden';
}
}
+ var cb = document.getElementById('checkbox-selectall');
+ cb.addEventListener('click',
+ function(e){
+ var cb = document.getElementById('checkbox-selectall');
+ var cc = document.getElementById('contact-count').value;
+ for (var i=1; i <= cc; i++){
+ var cid = document.getElementById('contact-' + i).value; var rowcb = document.getElementById('id-' + cid);
+ rowcb.checked = cb.checked;
+ }
+ }, false);
}
function show_details(contact_id){
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.