Преглед изворни кода

Styling Fixes (#648)

* Styling Fixes

* Styling Fixes

* Styling Fixes
OwN-3m-All пре 9 месеци
родитељ
комит
b74b599bde
3 измењених фајлова са 28 додато и 10 уклоњено
  1. 19 0
      css/global.css
  2. 9 0
      js/jquery/plugins/jquery.tablesorter.collapsible.js
  3. 0 10
      modules/ftp/ftp_admin.css

+ 19 - 0
css/global.css

@@ -133,4 +133,23 @@ li.linux64{
 
 td.collapsible{
 	cursor: pointer;
+	background-color: transparent !important;
+}
+
+.collapsible.collapsed {
+	padding: 10px;
+}
+
+.collapsible.expanded {
+	padding: 10px;
+}
+
+tr:has(> .collapsible.expanded) {
+	background: url('../images/tablesorter_collapse.png') no-repeat 0% 0% !important;
+	cursor: pointer;
+}
+
+tr:has(> .collapsible.collapsed) {
+	background: url('../images/tablesorter_expand.png') no-repeat 0% 0%;
+	cursor: pointer;
 }

+ 9 - 0
js/jquery/plugins/jquery.tablesorter.collapsible.js

@@ -36,6 +36,9 @@
 						$tr = $self.parent(), 
 						$trc = $tr.next(), 
 						bIsCollapsed = $self.hasClass(settings.classExpand);
+						
+					var otherTds = $tr.find('td.collapsible');
+					
 					// change the css class
 					$self[bIsCollapsed ? "removeClass" : "addClass"](settings.classExpand)[!bIsCollapsed ? "removeClass" : "addClass"](settings.classCollapse);
 					while( $trc.hasClass(settings.classChildRow) ){
@@ -44,6 +47,12 @@
 						// get the next row
 						$trc = $trc.next();
 					}
+					
+					$(otherTds).each(function(e){
+						if(!$(this).is($self)){
+							$(this)[bIsCollapsed ? "removeClass" : "addClass"](settings.classExpand)[!bIsCollapsed ? "removeClass" : "addClass"](settings.classCollapse);
+						}
+					}); 
 					return false;
 				});
 			

+ 0 - 10
modules/ftp/ftp_admin.css

@@ -1,11 +1 @@
-.collapsible.collapsed {
-	padding: 10px;
-	background: url('../../images/tablesorter_expand.png') no-repeat center center;
-	cursor: pointer;
-}
 
-.collapsible.expanded {
-	padding: 10px;
-	background: url('../../images/tablesorter_collapse.png') no-repeat center center;
-	cursor: pointer;
-}