summaryrefslogtreecommitdiffstats
path: root/script/custom.js
diff options
context:
space:
mode:
authorSimon Rettberg2016-05-18 18:04:56 +0200
committerSimon Rettberg2016-05-18 18:04:56 +0200
commit2e18b36a287ad9b25619f9e2a073dcedf6d620ee (patch)
tree96d802fdc1c21ee9aa9b4d89a6611db7d8502433 /script/custom.js
parentModularized baseconfig fetching (api) (diff)
downloadslx-admin-2e18b36a287ad9b25619f9e2a073dcedf6d620ee.tar.gz
slx-admin-2e18b36a287ad9b25619f9e2a073dcedf6d620ee.tar.xz
slx-admin-2e18b36a287ad9b25619f9e2a073dcedf6d620ee.zip
MORE WMORK
Diffstat (limited to 'script/custom.js')
-rw-r--r--script/custom.js32
1 files changed, 0 insertions, 32 deletions
diff --git a/script/custom.js b/script/custom.js
deleted file mode 100644
index b2c5b2a7..00000000
--- a/script/custom.js
+++ /dev/null
@@ -1,32 +0,0 @@
-function loadContent(elem, source)
-{
- var waitForIt = function() {
- if (typeof $ === 'undefined') {
- setTimeout(waitForIt, 50);
- return;
- }
- $(elem).load(source);
- }
- waitForIt();
-}
-
-function forceTable(t)
-{
- var pwidth = t.parent().innerWidth();
- var rows = t.find('tr');
- var row = rows.first();
- pwidth = Math.round(pwidth);
- t.width(pwidth);
- var sum = 0;
- row.find('td').each(function() {
- if (!$(this).hasClass('slx-width-ignore'))
- sum += $(this).outerWidth(true);
- });
- var w = Math.round(pwidth - sum);
- do {
- rows.find('.slx-dyn-ellipsis').each(function() {
- $(this).width(w).css('width', w + 'px').css('max-width', w + 'px');
- });
- w -= 3;
- } while (t.width() > pwidth);
-} \ No newline at end of file