ref: refs/heads/master
commit bed22b1fd61343d921f07c4f7fce8ceba26e3c40
Author: Josef Reidinger
Date: Tue Jul 14 17:07:32 2009 +0200
for java script use full force of jquery (act same as previous, which is buggy, fixed in future commits)
---
.../app/views/patch_updates/index.html.erb | 14 +-------------
1 files changed, 1 insertions(+), 13 deletions(-)
diff --git a/plugins/patch_updates/app/views/patch_updates/index.html.erb b/plugins/patch_updates/app/views/patch_updates/index.html.erb
index 83d2b64..d92a5a3 100644
--- a/plugins/patch_updates/app/views/patch_updates/index.html.erb
+++ b/plugins/patch_updates/app/views/patch_updates/index.html.erb
@@ -8,19 +8,7 @@
$(document).ready(function() {
$('#All').click(function() {
- var counter = document.getElementById("counter").value;
- var mode = document.getElementById("All").checked;
- for(var i = 0; i < counter; i++) {
- try {
- document.getElementById(i).checked = mode;
- document.getElementById("Security").checked = mode;
- document.getElementById("Important").checked = mode;
- document.getElementById("Green").checked = mode;
- document.getElementById("Optional").checked = mode;
- } catch(err) {
- //alert("error");
- }
- }
+ $("INPUT[type='checkbox']").attr('checked', $('#All').is(':checked'));
});
$('#selector').click(function(){
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org