bug fixes

This commit is contained in:
Diego Najar 2017-06-26 22:50:56 +02:00
parent 9d865eb6ce
commit c28688dd6e
3 changed files with 22 additions and 7 deletions

View File

@ -48,6 +48,7 @@ if( $_SERVER['REQUEST_METHOD'] == 'POST' )
if( $plugin->post() ) { if( $plugin->post() ) {
// Create an alert // Create an alert
Alert::set( $Language->g('The changes have been saved') ); Alert::set( $Language->g('The changes have been saved') );
Redirect::page('configure-plugin/'.$plugin->className());
} }
else { else {
// Create an alert // Create an alert

View File

@ -681,12 +681,6 @@ div.plugin-links > span.separator {
width: 100%; width: 100%;
} }
#jsformplugin ul {
padding: 0;
list-style: none;
margin-bottom: 10px;
}
#jsformplugin button[type=submit] { #jsformplugin button[type=submit] {
margin-left: 200px; margin-left: 200px;
border-radius: 2px; border-radius: 2px;
@ -705,6 +699,11 @@ div.plugin-links > span.separator {
color: #fff; color: #fff;
} }
#jsformplugin button[type=submit].small {
font-size: 0.9em;
min-height: 20px;
}
#jsformplugin > div > label, #jsformplugin > div > label,
#jsformplugin > div > input[type=text], #jsformplugin > div > input[type=text],
#jsformplugin > div > input[type=checkbox], #jsformplugin > div > input[type=checkbox],
@ -736,3 +735,14 @@ div.plugin-links > span.separator {
#jsformplugin > div > textarea { #jsformplugin > div > textarea {
min-height: 100px; min-height: 100px;
} }
@media (max-width: 960px) {
#jsformplugin div {
display: block;
}
#jsformplugin button[type=submit] {
margin: 0;
}
}

View File

@ -3,7 +3,7 @@
class Filesystem { class Filesystem {
// Returns an array with the absolutes directories. // Returns an array with the absolutes directories.
public static function listDirectories($path, $regex='*') public static function listDirectories($path, $regex='*', $sortByDate=false)
{ {
$directories = glob($path.$regex, GLOB_ONLYDIR); $directories = glob($path.$regex, GLOB_ONLYDIR);
@ -11,6 +11,10 @@ class Filesystem {
return array(); return array();
} }
if($sortByDate) {
usort($directories, create_function('$a,$b', 'return filemtime($b) - filemtime($a);'));
}
return $directories; return $directories;
} }