Webmin + CSF

11 posts Page 1 of 2
Ilia
Junior Member
Posts: 88
Joined: 09 Feb 2013, 08:47


Dear developers,

Webmin is switching to SPA. We need to inject certain triggers for module to operate correctly.

At the moment we have in CSF the ability to inject stuff into head section and before the closing tag (footer).

We also need the ability to add `data-*` attributes to `<html>` tag and most importantly ability to inject tags/containers into the body tag.

Is this possible that you could add to the next version 10.23 mentioned hooks as well, along to other Custom styling, i.e. to existing `csf.header` and `csf.footer`, add something like `csf.body` and `csf.htmldata`, please?
Ilia
Junior Member
Posts: 88
Joined: 09 Feb 2013, 08:47


Is this possible to add?
ForumAdmin
Moderator
Posts: 1341
Joined: 01 Oct 2008, 09:24


We will look at adding the functionality when csf next comes up for modification.
Ilia
Junior Member
Posts: 88
Joined: 09 Feb 2013, 08:47


Thank you.
Ilia
Junior Member
Posts: 88
Joined: 09 Feb 2013, 08:47


Thank you very much for the update.

One question though. On read me you state:
On non-cPanel servers, added csf.htmltag and csf.bodytag files to UI skinning (STYLE_CUSTOM)
What about adding anything in the <body>, like a container <div id="container"><div id="subcontainer">.

I suppose it's not there yet?

At the same time, using csf.footer will be possible to close those starting tags mentioned above.

Adding additional wrappers into <body> is very important and makes things impossible to style fully.

Could you please also add csf.bodycontent or something?
ForumAdmin
Moderator
Posts: 1341
Joined: 01 Oct 2008, 09:24


This has been added in v10.24
Ilia
Junior Member
Posts: 88
Joined: 09 Feb 2013, 08:47


Absolutely fantastic. Thanks! <3
Ilia
Junior Member
Posts: 88
Joined: 09 Feb 2013, 08:47


Everything it's purely fantastic. I only found one serious obstacle, which is in Configuration Page.

In your `/usr/local/csf/lib/csf.div` you have right at the top:
Code: Select all
document.write ...
When using AJAX calls you can't use `document.write` after the page stopped loading (https://stackoverflow.com/questions/23 ... sing-ajax). In our case, it always stopped, because of SPA model, and doing it destroys the whole page completely.

Could you please move this part to `configserver.css` ?
Ilia
Junior Member
Posts: 88
Joined: 09 Feb 2013, 08:47


One more thing,

Search System Logs/Select for log file name (id="CSFlognum") doesn't seem to need to trigger `CSFrefreshtimer()`.

If it's triggered, then it would cause fatal error because there is no such element on this page. ;)
Ilia
Junior Member
Posts: 88
Joined: 09 Feb 2013, 08:47


10.25 is perfect - thank you. When I release next theme version I'll send you the link to take a look. ;)
11 posts Page 1 of 2