/* GZIP by Raccoon Framework */ /** * @author Alejandro Galindo * @version 1.0, June 2009 * @copyright Tecnologias Web de Mexico S.A. de C.V. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL */ (function($) { /** * @uses * @uses */ $.fn.zebra = function() { return this.each(function() { $this = $(this); var style = $this.attr("zebra:style"); var className = $this.attr("zebra:class"); if (style != "") { if (style.indexOf(";") >= 0) { a = style.split(";"); console.log(a); for (x in a) { b = a[x].split(":"); $this.css(jQuery.trim(b[0]),jQuery.trim(b[1])); } } else { b = style.split(":"); $this.css(jQuery.trim(b[0]),jQuery.trim(b[1])); } } if (className != "") $this.addClass(className); }); } /** * @uses Html::SplitList */ $.fn.splitlist = function() { $("form").submit(function() { $(".splitlist_active option").each(function() { this.selected = true; }); }); return this.each(function() { var name = $(this).attr("rel"); $("#splstadd_"+name).click(function() { $("#splstl_"+name+" option:selected").appendTo("#splsta_"+name); }); $("#splstdel_"+name).click(function() { $("#splsta_"+name+" option:selected").appendTo("#splstl_"+name); }); }); } })(jQuery); $(function() { $(".zebraodd:odd,.zebraeven:even").zebra(); $("table.splitlist").splitlist(); if ($(".hidemessage").length > 0) window.setTimeout(function() { $('.hidemessage').hide('slow'); }, 1000); });