Giter VIP home page Giter VIP logo

Comments (7)

devoopsme avatar devoopsme commented on July 20, 2024

Thanks for issue!
We solve this in next few day.

from devoops.

devoopsme avatar devoopsme commented on July 20, 2024

Fixed in 1745d78
Thank you for attention!

from devoops.

Omi004 avatar Omi004 commented on July 20, 2024

Hi Guys,

Great job and thanks for providing an awesome theme..
I am using this theme in my PHP project and i am unable to handle a scenario wherein if you open a sidebar link in a new tab or new window then it doesn't load the required css and js and the whole view is distorted.As, when you open it in new tab or window,the # is not appended to the url.

Please help me as i have to rectify this issue or else i have to change the whole approach of displaying pages.

Thanks,
Omi

from devoops.

briansol avatar briansol commented on July 20, 2024

@Omi004, I came up with a way to rectify this.

  1. prefix your links with the main container, probably index.html. So if you had
    <li><a class="ajax-link" href="#page.html">Page</li>
    you would change these links to
    <li><a class="ajax-link" href="index.html#page.html">Page</li>

this solves the right-click new tab/window problems as it conatins the full url.
but this breaks the shortcuts that DOM-load into the ajax Div, so

  1. change the JS that handles that dom-add to remove the index.html from the href by finding
    var url = $(this).attr('href');
    and replacing it with
    var url = $(this).attr('href').replace('index.html#','');

so now your dom-clicks strip the added prefix.

the urls are a little "uglier" on hover in the status bar, but at least it functions this way instead of just showing the bad 'inner' page with no headers or js/css and it doesn't make it into the url anyway.

from devoops.

Omi004 avatar Omi004 commented on July 20, 2024

Thank you for replying. i will try this out.
I have some how managed to fix it using redirects earlier,but the problem there is,i have to fix it in all the content pages,for ex:

in forms_layouts.html, i have added following code.

function onBeforeRequest(){
if (location.href=="http://localhost/devoops/ajax/forms_layouts.html") {
location.href = "http://localhost/devoops/#ajax/forms_layouts.html";
}
}

$(document).ready(function() {
//alert("2")
onBeforeRequest();
......

it just solves the problm but ,it increases the manual work which is against standard practice.
πŸ˜„ πŸ‘

Regards,
Omi

from devoops.

briansol avatar briansol commented on July 20, 2024

Well, it could be a one-time change if you server-side your menu and print links from php like
$scriptroot = "index.html#";
<A HREF="'.$scriptroot.'"page">click</a>

Surely, doing a client side re-direct on every page load should be considered a far worse standard practice.

from devoops.

jjones624 avatar jjones624 commented on July 20, 2024

Just a fantastic template, really sweet!
I have downloaded both the first version and V2, and without making any changes to any code, in V2 I'm seeing that the menu collapse button (the 3 horizontal lines), will not collapse when the web page is set to a smaller size (anything smaller than a standard desktop size). In the first version it works fine.
Any ideas what is happening? It's on Win 8.1 with Chrome.

Thanks, Jeff

from devoops.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.