[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [7839]
From: |
Torstein |
Subject: |
[Fmsystem-commits] [7839] |
Date: |
Fri, 07 Oct 2011 06:36:36 +0000 |
Revision: 7839
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7839
Author: vator
Date: 2011-10-07 06:36:35 +0000 (Fri, 07 Oct 2011)
Log Message:
-----------
Modified Paths:
--------------
trunk/controller/js/controller/custom_ui.js
Modified: trunk/controller/js/controller/custom_ui.js
===================================================================
--- trunk/controller/js/controller/custom_ui.js 2011-10-07 06:35:40 UTC (rev
7838)
+++ trunk/controller/js/controller/custom_ui.js 2011-10-07 06:36:35 UTC (rev
7839)
@@ -5,17 +5,53 @@
$("ul.control_items ul:first").addClass('active');
- $("ul.expand_list h4").click(function(){
+ $(".expand_list h4").click(function(){
+ if( $(this).parent().parent().hasClass('active')){
+ $(this).parent().find("ul").slideUp("slow");
+ $(this).find("img").attr("src",
"controller/images/arrow_left.png");
+ $(this).parent().parent().removeClass('active');
+ }else{
+ $(this).parent().find("ul").slideDown("slow");
+ $(this).find("img").attr("src",
"controller/images/arrow_down.png");
+ $(this).parent().parent().addClass('active');
+ }
+ });
+
+ $(".expand_all").click(function(){
+ $(".expand_all").css("background",
"url('controller/images/bg_expand_blue.png') no-repeat");
+ $(".expand_all").css("color", "#FFFFFF");
+ $(".collapse_all").css("background",
"url('controller/images/bg_expand_grey.png') no-repeat");
+ $(".collapse_all").css("color", "#000000");
- $("ul.control_items ul.expand_list.active").find("h4
img").attr("src", "controller/images/arrow_left.png");
- $("ul.control_items ul.expand_list.active").find("li
ul").slideUp("slow");
+ $("ul.expand_list").find("li ul").slideDown("slow");
+ $("ul.expand_list").find("li ul").addClass("active");
+ $("ul.expand_list").find("li h4 img").attr("src",
"controller/images/arrow_down.png");
+ });
+
+ $(".collapse_all").click(function(){
+ $(".collapse_all").css("background",
"url('controller/images/bg_expand_blue.png') no-repeat");
+ $(".collapse_all").css("color", "#FFFFFF");
+ $(".expand_all").css("background",
"url('controller/images/bg_expand_grey.png') no-repeat");
+ $(".expand_all").css("color", "#000000");
- $(this).parent().find("ul").slideDown("slow");
- $(this).find("img").attr("src",
"controller/images/arrow_down.png");
- $(this).parent().parent().addClass('active');
-
+ $("ul.expand_list").find("li ul").slideUp("slow");
+ $("ul.expand_list").find("li ul").removeClass("active");
+ $("ul.expand_list").find("li h4 img").attr("src",
"controller/images/arrow_left.png");
+ });
+
+ $("#frm_control_items input[type='checkbox']").click(function(){
+ var thisCbox = $(this);
+ var chbox_id = $(thisCbox).attr("id");
+ var control_group_id = chbox_id.substring(
chbox_id.indexOf("_")+1, chbox_id.indexOf(":") );
+ var control_item_id = chbox_id.substring(
chbox_id.indexOf(":")+1, chbox_id.length );
+
+ if ($("#hid_"+control_item_id).length > 0){
+ $("#hid_"+control_item_id).remove();
+ }else{
+ $("#frm_control_items").prepend("<input type='hidden'
id=hid_" + control_item_id + " name='control_tag_ids[]' value=" +
control_group_id + ":" + control_item_id + " />");
+ }
});
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [7839],
Torstein <=