fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [8027] set low opacity on save button when order of c


From: Erik Holm-Larsen
Subject: [Fmsystem-commits] [8027] set low opacity on save button when order of check-items is stored.
Date: Mon, 07 Nov 2011 07:48:50 +0000

Revision: 8027
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=8027
Author:   erikhl
Date:     2011-11-07 07:48:50 +0000 (Mon, 07 Nov 2011)
Log Message:
-----------
set low opacity on save button when order of check-items is stored.
set high opacity on save button when order of check-items is changed.

Modified Paths:
--------------
    trunk/controller/js/controller/ajax.js
    trunk/controller/js/controller/custom_drag_drop.js
    trunk/controller/templates/base/sort_check_list.xsl

Modified: trunk/controller/js/controller/ajax.js
===================================================================
--- trunk/controller/js/controller/ajax.js      2011-11-04 21:52:36 UTC (rev 
8026)
+++ trunk/controller/js/controller/ajax.js      2011-11-07 07:48:50 UTC (rev 
8027)
@@ -27,6 +27,8 @@
                                  window.setTimeout(function() {
                                          $(this_submit_btn).val('Lagre 
rekkefølge');
                                         }, 1000);
+                                 
+                                 $(this_submit_btn).css({opacity: 0.2 });
                                }
                        });     
        });

Modified: trunk/controller/js/controller/custom_drag_drop.js
===================================================================
--- trunk/controller/js/controller/custom_drag_drop.js  2011-11-04 21:52:36 UTC 
(rev 8026)
+++ trunk/controller/js/controller/custom_drag_drop.js  2011-11-07 07:48:50 UTC 
(rev 8027)
@@ -152,6 +152,10 @@
 
        $(document).unbind("mousemove");
        $(document).unbind("mouseup");
+       
+       var thisForm = $(this);
+       var this_submit_btn = $(thisForm).find("input[type='submit']");
+       $(this_submit_btn).css({opacity: 1 });
 }
 
 //Release binding for mouse events

Modified: trunk/controller/templates/base/sort_check_list.xsl
===================================================================
--- trunk/controller/templates/base/sort_check_list.xsl 2011-11-04 21:52:36 UTC 
(rev 8026)
+++ trunk/controller/templates/base/sort_check_list.xsl 2011-11-07 07:48:50 UTC 
(rev 8027)
@@ -49,7 +49,7 @@
                                                </ul>
                                                <div>
                                                        <xsl:variable 
name="lang_save"><xsl:value-of select="php:function('lang', 'save_order')" 
/></xsl:variable>
-                                                       <input type="submit" 
id="save_order" name="save_order" value="{$lang_save}" title = "{$lang_save}" />
+                                                       <input type="submit" 
id="save_order" name="save_order" value="{$lang_save}" title = "{$lang_save}" 
style="opacity: 0.2;"/>
                                                </div>
                                        </form>
                                </li>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]