mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Merge pull request #3733 from rwjblue/use-ghost-paths-util
Use the ghost-paths consistently.
This commit is contained in:
commit
048cdc5f16
2 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@ UploadUi = function ($dropzone, settings) {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
$dropzone.find('.js-fileupload').fileupload().fileupload('option', {
|
$dropzone.find('.js-fileupload').fileupload().fileupload('option', {
|
||||||
url: Ghost.subdir + '/ghost/api/v0.1/uploads/',
|
url: Ghost.apiRoot + '/uploads/',
|
||||||
add: function (e, data) {
|
add: function (e, data) {
|
||||||
/*jshint unused:false*/
|
/*jshint unused:false*/
|
||||||
$('.js-button-accept').prop('disabled', true);
|
$('.js-button-accept').prop('disabled', true);
|
||||||
|
|
|
@ -6,7 +6,7 @@ var Router = Ember.Router.extend();
|
||||||
|
|
||||||
Router.reopen({
|
Router.reopen({
|
||||||
location: 'trailing-history', // use HTML5 History API instead of hash-tag based URLs
|
location: 'trailing-history', // use HTML5 History API instead of hash-tag based URLs
|
||||||
rootURL: ghostPaths().subdir + '/ghost/', // admin interface lives under sub-directory /ghost
|
rootURL: ghostPaths().adminRoot, // admin interface lives under sub-directory /ghost
|
||||||
|
|
||||||
clearNotifications: function () {
|
clearNotifications: function () {
|
||||||
this.notifications.closePassive();
|
this.notifications.closePassive();
|
||||||
|
|
Loading…
Add table
Reference in a new issue