Author: andrei_exadel
Date: 2009-01-29 11:31:22 -0500 (Thu, 29 Jan 2009)
New Revision: 12496
Modified:
trunk/test-applications/realworld/web/src/main/webapp/includes/fileUpload/multyMode.xhtml
trunk/test-applications/realworld/web/src/main/webapp/scripts/realworld.js
Log:
Select all checkbox
Modified:
trunk/test-applications/realworld/web/src/main/webapp/includes/fileUpload/multyMode.xhtml
===================================================================
(Binary files differ)
Modified: trunk/test-applications/realworld/web/src/main/webapp/scripts/realworld.js
===================================================================
--- trunk/test-applications/realworld/web/src/main/webapp/scripts/realworld.js 2009-01-29
16:21:20 UTC (rev 12495)
+++ trunk/test-applications/realworld/web/src/main/webapp/scripts/realworld.js 2009-01-29
16:31:22 UTC (rev 12496)
@@ -10,4 +10,33 @@
}
}
return disabled;
- }
\ No newline at end of file
+ }
+
+function selectAllFiles(f) {
+ for (var i = 0; i < filesCount; i++) {
+ var b = $('mainform:files:'+i+':file_selected');
+ if (b) {
+ b.checked = f;
+ }
+
+ }
+}
+
+function onselectFileClick(el) {
+ if (!el.checked) {
+ $('select_all').checked = false;
+ }else {
+ var b = true;
+ for (var i = 0; i < filesCount; i++) {
+ var d = $('mainform:files:'+i+':file_selected');
+ if (!d.checked) {
+ b = false;
+ break;
+ }
+ }
+ if (b) {
+ $('select_all').checked = true;
+ }
+
+ }
+}
\ No newline at end of file
Show replies by date