Index: trunk/extensions/SemanticForms/libs/SemanticForms.js |
— | — | @@ -602,23 +602,32 @@ |
603 | 603 | } |
604 | 604 | } |
605 | 605 | |
606 | | -for (var i = 0; i < sfgComboBoxInputs.length; i++ ) { |
607 | | - var input_num = sfgComboBoxInputs[i]; |
608 | | - jQuery(document).ready(function() { |
609 | | - jQuery("#input_" + input_num).combobox(); |
610 | | - }); |
611 | | -} |
| 606 | +jQuery(document).ready(function() { |
| 607 | + for (var i = 0; i < sfgComboBoxInputs.length; i++ ) { |
| 608 | + jQuery("#input_" + sfgComboBoxInputs[i]).combobox(); |
| 609 | + } |
612 | 610 | |
| 611 | + for (var i = 0; i < sfgAutogrowInputs.length; i++ ) { |
| 612 | + jQuery("#" + sfgAutogrowInputs[i]).autoGrow(); |
| 613 | + } |
| 614 | + |
| 615 | + for (var i = 0; i < sfgFancyBoxInputs.length; i++ ) { |
| 616 | + jQuery("#fancybox_" + sfgFancyBoxInputs[i]).fancybox({ |
| 617 | + 'width' : '75%', |
| 618 | + 'height' : '75%', |
| 619 | + 'autoScale' : false, |
| 620 | + 'transitionIn' : 'none', |
| 621 | + 'transitionOut' : 'none', |
| 622 | + 'type' : 'iframe', |
| 623 | + 'overlayColor' : '#222', |
| 624 | + 'overlayOpacity' : '0.8' |
| 625 | + }); |
| 626 | + } |
| 627 | +}); |
| 628 | + |
613 | 629 | jQuery.event.add(window, "load", attachAutocompleteToAllDocumentFields); |
614 | 630 | |
615 | | -for (var i = 0; i < sfgAutogrowInputs.length; i++ ) { |
616 | | - var input_num = sfgAutogrowInputs[i]; |
617 | | - jQuery(document).ready(function() { |
618 | | - jQuery("#" + input_num).autoGrow(); |
619 | | - }); |
620 | | -} |
621 | 631 | |
622 | | - |
623 | 632 | /* extending jquery functions */ |
624 | 633 | |
625 | 634 | (function(jQuery) { |