Permalink
Browse files

removing actions: step 2

  • Loading branch information...
1 parent 809c816 commit 26f357ceb7f5c6b732ba49ea6bb0fee39ad17d5b @saxix committed Sep 10, 2012
Deleted file not rendered
File renamed without changes.
@@ -1,31 +0,0 @@
-$(function() {
- $('.col_field input, .col_field select').each(function() {
- $(this).attr('disabled', 'disabled');
- });
- $('.fastfieldvalue').click(function() {
- var check = $(this).parent().parent().find('.enabler');
- var selection = $(this).text();
- $(check).attr('checked', true);
- var target = $(this).parent().parent().find('input, select').not('.enabler');
- $(target).removeAttr('disabled');
- if ($(target).is('select')) {
- $('option', target).each(function(i, selected) {
- if ($(this).text() == selection) {
- $(this).attr('selected', true);
- }
- });
- } else if ($(target).is('input[type=checkbox]')) {
- $(target).attr('checked', selection=='True');
- } else if ($(target).is('input')) {
- $(target).val(selection);
- }
- });
- $('.enabler').click(function() {
- var target = $(this).parent().parent().find('.col_field input, .col_field select');
- if ($(this).is(':checked')) {
- $(target).removeAttr('disabled');
- } else {
- $(target).attr('disabled', 'disabled');
- }
- })
-});
Oops, something went wrong.

0 comments on commit 26f357c

Please sign in to comment.