[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [16684] resize
From: |
sigurdne |
Subject: |
[Fmsystem-commits] [16684] resize |
Date: |
Wed, 3 May 2017 15:22:42 -0400 (EDT) |
Revision: 16684
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16684
Author: sigurdne
Date: 2017-05-03 15:22:42 -0400 (Wed, 03 May 2017)
Log Message:
-----------
resize
Modified Paths:
--------------
trunk/phpgwapi/templates/pure/js/mmenu.js
Modified: trunk/phpgwapi/templates/pure/js/mmenu.js
===================================================================
--- trunk/phpgwapi/templates/pure/js/mmenu.js 2017-05-03 16:04:59 UTC (rev
16683)
+++ trunk/phpgwapi/templates/pure/js/mmenu.js 2017-05-03 19:22:42 UTC (rev
16684)
@@ -130,22 +130,41 @@
$(window).resize(function ()
{
-
- $('.pure-form-aligned').each(function (i, obj)
+ var width = $(window).width();
+ if (width < 620)
{
-
$(this).removeClass('pure-form-aligned').addClass('pure-form-stacked');
- });
- $('.pure-input-1-2').each(function (i, obj)
- {
-
$(this).removeClass('pure-input-1-2').addClass('pure-input-1');
- });
- $('.pure-u-3-4').each(function (i, obj)
- {
-
$(this).removeClass('pure-u-3-4').addClass('pure-u-5-6');
- });
+ $('.pure-form-aligned').each(function (i, obj)
+ {
+
$(this).removeClass('pure-form-aligned').addClass('pure-form-stacked');
+ });
+ $('.pure-input-1-2').each(function (i, obj)
+ {
+
$(this).removeClass('pure-input-1-2').addClass('pure-input-1');
+ });
+ $('.pure-u-3-4').each(function (i, obj)
+ {
+
$(this).removeClass('pure-u-3-4').addClass('pure-u-5-6');
+ });
+ }
+// else if (resized == true && width > 620)
+// {
+// $('.pure-form-stacked').each(function (i, obj)
+// {
+//
$(this).removeClass('pure-form-stacked').addClass('pure-form-aligned');
+// });
+// $('.pure-input-1').each(function (i, obj)
+// {
+//
$(this).removeClass('pure-input-1').addClass('pure-input-1-2');
+// });
+// $('.pure-u-5-6').each(function (i, obj)
+// {
+//
$(this).removeClass('pure-u-5-6').addClass('pure-u-3-4');
+// });
+// resized = false;
+//
+// }
- })
- .resize();//trigger the resize event on page load.
+ }).resize();//trigger the resize event on page load.
});
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [16684] resize,
sigurdne <=