Comments (7)
Thanks for issue!
We solve this in next few day.
from devoops.
Fixed in 1745d78
Thank you for attention!
from devoops.
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.
@Omi004, I came up with a way to rectify this.
- 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
- 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.
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.
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.
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)
- Error in multilevel menΓΉ when window size is little HOT 1
- Add all dependencies to bower.json HOT 5
- Fixed non-scrolling sidebar HOT 3
- AutoComplete Values Filled In Inputs Shows the Bootstrap Validation Errors HOT 8
- Left side menu actives the dashboard after Refreshing though my current page is different HOT 9
- v2 - Using Modals correctly
- devoops in Symfony2 HOT 1
- Enhancement :: Fixed Side Nav and Fixed Breadcrumb HOT 1
- DataTables don't import DT CSS HOT 1
- fa-bars get unresponsive when browser size is reduced HOT 5
- datepicker changeXxxxxx colors HOT 1
- Demo Link HOT 1
- dialog on long pages
- Unresponsive UI HOT 2
- Memleaks in demo HOT 2
- Multiple scripts load and execution HOT 1
- IE10 HOT 2
- The problem with the site HOT 4
- site spoofing HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devoops.