4
4
$(document).ready(function(){
5
5
// Checking the checkbox w/ id checkAll will check all boxes w/ class chekToggle
6
6
// unchecking checkAll will uncheck all checkToggles.
7
$("#checkall").live('click', function () {
8
$('.checkToggle').attr('checked', this.checked);
7
$('#checkall').live('click', function () {
8
var check = this.checked;
9
$('.checkBoxContainer').find('.checkToggle').each(function() {
11
$(this).trigger('change');
10
14
// This unsets the check in checkAll if one of the checkToggles are unchecked.
11
15
// or it will set the check on checkAll if all the checkToggles have been checked
13
$(".checkToggle").live('click', function(){
14
var one = $("input.checkToggle").length;
15
var two = $("input.checkToggle:checked").length
16
if($("input.checkToggle").length == $("input.checkToggle:checked").length) {
17
$("#checkall").attr("checked", "checked");
19
$("#checkall").removeAttr("checked");
17
$('.checkToggle').live('change', function(){
18
if($('.checkToggle').length == $('.checkToggle:checked').length) {
19
$('#checkall').attr('checked', true);
21
$("#checkall").attr('checked', false);
26
$(document).ready(function() {
27
$('.searchParams .checkToggle').live('change', function() {
28
if($(this).is(':checked')) {
29
$('.available .' + $(this).attr('id')).show();
31
$('.available .' + $(this).attr('id')).hide();
36
$(document).ready(function() {
37
$('.blorg').live('change', function() {
38
//$('#fgroup').load($(this).parent().attr('action'));
39
$.post($(this).parent().attr('action'), $('#' + $(this).parent().attr('id') + ' :input') ,function(data) {
40
$('#fgroup').html(data);
45
$(document).ready(function() {
46
$('.expandAll').live('click', function() {
47
$('.expander').each(function(){
48
if($('#expandable_' + $(this).attr('id')).children().length == 0) {
56
$(document).ready(function() {
57
$('.collapseAll').live('click', function() {
58
$('.expander').each(function(){
59
if($('#expandable_' + $(this).attr('id')).children().length != 0) {
67
$(document).ready(function() {
68
$('.expander').click(function() {
69
var expandToggle = '#expandable_' + $(this).attr('id');
70
if($(expandToggle).children().length == 0) {
71
$(expandToggle).load($(this).attr('href'), function() {
72
$(expandToggle).slideToggle();
75
$(expandToggle).slideToggle(function() {
76
$(expandToggle).empty();
79
$(this).html(pointerCheck($(this).html()));
84
$(document).ready(function() {
85
$('.textToForm').live('click', function() {
86
var passId = '#' + $(this).attr('id');
87
var $poster = $(this);
88
$.post($(this).attr('href'), {type: $(this).attr('name'), current: $(this).html(), id: $(this).attr('id')}, function(data) {
89
$(passId).parent().append(data);
90
$poster.attr('id', 'poster_' + $poster.attr('id'));
92
var b ='#' + passId + ' > .submitTextToForm';
93
$(passId + ' > .submitTextToForm').focus();
100
$(document).ready(function() {
101
$('.includeAndAdd').live('click', function() {
102
var passId = '#' + $(this).attr('id');
103
var $poster = $(this);
104
$.post($(this).attr('href'), {type: $(this).attr('name'), current: $(this).html(), id: $(this).attr('id')}, function(data) {
105
$(passId).parent().append(data + '<br />' + $poster.parent().html());
106
$poster.attr('id', 'poster_' + $poster.attr('id'));
108
var b ='#' + passId + ' > .submitTextToForm';
109
$(passId + ' > .submitTextToForm').focus();
117
// Disable submitting with enter for .submitTextToForm inputs.
118
$(document).ready(function() {
119
$('.submitTextToForm').live('keypress', function(evt) {
120
var charCode = evt.charCode || evt.keyCode;
121
if (charCode == 13) {
127
$(document).ready(function() {
128
$('.submitTextToForm').live('blur submit', function() {
129
var $poster = $(this);
131
$.post($(this).parent().attr('action'), $('#' + $(this).parent().attr('id') + ' :input'), function(data) {
132
var returned = $.parseJSON(data);
133
if(returned.status == 'failure') {
134
$poster.css('color', 'red')
135
$poster.val(returned.refresh);
137
var idTransfer = $poster.parent().attr('id');
138
$poster.parent().remove();
139
$('#poster_' + idTransfer).html(returned.refresh);
140
$('#poster_' + idTransfer).show();
141
$('#poster_' + idTransfer).attr('id', idTransfer);
148
function pointerCheck(pointer) {
149
if(pointer == (String.fromCharCode(9654))) {
151
} else if(pointer == (String.fromCharCode(9660))) {
158
$(document).ready(function() {
159
$("ul.stepperList li").live('mouseover',function(){
160
$("li.altLItext").text($(this).attr('title'))
161
}).live('mouseout',function(){
162
$("li.altLItext").text('')
b'\\ No newline at end of file'