Browse Source

expand/collapse any table

windows
Florian N 12 years ago
parent
commit
17ac565e48
  1. 3
      pydash/settings.py
  2. 5
      static/css/style.css
  3. 9
      static/js/dashboard.js

3
pydash/settings.py

@ -20,7 +20,6 @@ BASE_DIR = os.path.dirname(os.path.dirname(__file__))
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '1)$crmowu-23tz@i2-d=7tb3t+1u&(pm!lnjyuarki^72h!3af'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
@ -37,7 +36,7 @@ TIME_JS_REFRESH = 30000
TIME_JS_REFRESH_LONG = 120000
TIME_JS_REFRESH_NET = 2000
VERSION = 1.4
VERSION = 1.4.1
ALLOWED_HOSTS = ['*']

5
static/css/style.css

@ -410,12 +410,8 @@ textarea {
.widget-content {
padding: 20px 15px 15px;
background: #FFF;
border: 1px solid #D5D5D5;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
@ -423,7 +419,6 @@ textarea {
.widget-header+.widget-content {
border-top: none;
-webkit-border-top-left-radius: 0;
-webkit-border-top-right-radius: 0;
-moz-border-radius-topleft: 0;

9
static/js/dashboard.js

@ -250,3 +250,12 @@ dashboard.getIps = function() {
});
}
//Expand-Collapse div/table
jQuery(document).ready(function() {
jQuery(".widget-content").show();
//toggle the componenet with class msg_body
jQuery(".widget-header").click(function()
{
jQuery(this).next(".widget-content").slideToggle(500);
});
});
Loading…
Cancel
Save