summaryrefslogtreecommitdiffstats
path: root/script
diff options
context:
space:
mode:
authorSimon Rettberg2015-01-26 20:28:49 +0100
committerSimon Rettberg2015-01-26 20:28:49 +0100
commit5347ecd5ddb1803ec1c43240bafc84f5c427f855 (patch)
tree7a852cdaa44599dab5f4c98b9daa7c6443d81024 /script
parentFix stupid bug in update query, check DB version before handling callbacks (diff)
downloadslx-admin-5347ecd5ddb1803ec1c43240bafc84f5c427f855.tar.gz
slx-admin-5347ecd5ddb1803ec1c43240bafc84f5c427f855.tar.xz
slx-admin-5347ecd5ddb1803ec1c43240bafc84f5c427f855.zip
Add configtgz class. Fix dozens of bugs
Diffstat (limited to 'script')
-rw-r--r--script/custom.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/script/custom.js b/script/custom.js
index 12fe817e..675bf581 100644
--- a/script/custom.js
+++ b/script/custom.js
@@ -9,3 +9,19 @@ function loadContent(elem, source)
}
waitForIt();
}
+
+function forceTable(t)
+{
+ var pwidth = t.parent().innerWidth();
+ t.width(pwidth - 5);
+ var rows = t.find('tr');
+ var sum = 0;
+ rows.first().find('td').each(function (index) {
+ if (!$(this).hasClass('slx-width-ignore'))
+ sum += $(this).outerWidth();
+ });
+ var w = pwidth - (sum + 30);
+ rows.find('.slx-dyn-ellipsis').each(function (index) {
+ $(this).width(w).css('width', w + 'px').css('max-width', w + 'px');
+ });
+} \ No newline at end of file