-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor reloadStylesheets to receive absolute URLs
This is a preparatory step for a following change in which reloadStylesheets will have to be able to receive absolute URLs. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ function preview(setting, value) { | |
var stylesheetsLoaded = 2; | ||
var reloadStylesheets = function(cssFile) { | ||
var queryString = '?reload=' + new Date().getTime(); | ||
var url = OC.generateUrl(cssFile) + queryString; | ||
var url = cssFile + queryString; | ||
var old = $('link[href*="' + cssFile.replace("/","\/") + '"]'); | ||
var stylesheet = $("<link/>", { | ||
rel: "stylesheet", | ||
|
@@ -62,8 +62,8 @@ function preview(setting, value) { | |
stylesheet.appendTo("head"); | ||
}; | ||
|
||
reloadStylesheets('/css/core/server.css'); | ||
reloadStylesheets('/apps/theming/styles'); | ||
reloadStylesheets(OC.generateUrl('/css/core/server.css')); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
danxuliu
Author
Member
|
||
reloadStylesheets(OC.generateUrl('/apps/theming/styles')); | ||
|
||
// Preview images | ||
var timestamp = new Date().getTime(); | ||
|
Is this the correct path? Sorry, if I ask. This app is currently broken for me. See my issue here on Github.
Shouldn't this point to /core/css/server.scss
Again. Sorry if I am wrong