Skip to content

Commit

Permalink
Merge pull request #4684 from camptocamp/cleanup
Browse files Browse the repository at this point in the history
Use window.location.href instead of window.location
  • Loading branch information
fredj committed Feb 26, 2019
2 parents 8fc2e11 + 457e1bf commit 506fb16
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ To know more about ngeo take a look at:
ngeo also includes a [contribs](contribs) directory where non-core
contributions may be placed. ngeo currently includes one contrib: `gmf`. That
contrib includes components specific to the
[GeoMapFish](http://geomapfish.org/) project, that is components that rely on
[GeoMapFish](https://geomapfish.org/) project, that is components that rely on
GeoMapFish-specific web services. The `gmf` contrib examples are also available
[online](https://camptocamp.github.io/ngeo/master/examples/contribs/gmf/).

Expand Down
2 changes: 1 addition & 1 deletion contribs/gmf/apps/desktop/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if (!window.requestAnimationFrame) {
+ 'Vous allez être redirigé.\n\n'
+ 'Ihr Browser wird nicht unterstützt, bitte aktualisieren Sie ihn oder verwenden Sie einen anderen. '
+ 'Sie werden weitergeleitet.');
window.location = 'http://geomapfish.org/';
window.location.href = 'https://geomapfish.org/';
}


Expand Down
2 changes: 1 addition & 1 deletion contribs/gmf/apps/desktop_alt/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if (!window.requestAnimationFrame) {
+ 'Vous allez être redirigé.\n\n'
+ 'Ihr Browser wird nicht unterstützt, bitte aktualisieren Sie ihn oder verwenden Sie einen anderen. '
+ 'Sie werden weitergeleitet.');
window.location = 'http://geomapfish.org/';
window.location.href = 'https://geomapfish.org/';
}


Expand Down
2 changes: 1 addition & 1 deletion contribs/gmf/apps/iframe_api/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if (!window.requestAnimationFrame) {
+ 'Vous allez être redirigé.\n\n'
+ 'Ihr Browser wird nicht unterstützt, bitte aktualisieren Sie ihn oder verwenden Sie einen anderen. '
+ 'Sie werden weitergeleitet.');
window.location = 'http://geomapfish.org/';
window.location.href = 'https://geomapfish.org/';
}


Expand Down
2 changes: 1 addition & 1 deletion contribs/gmf/apps/mobile/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if (!window.requestAnimationFrame) {
+ 'Vous allez être redirigé.\n\n'
+ 'Ihr Browser wird nicht unterstützt, bitte aktualisieren Sie ihn oder verwenden Sie einen anderen. '
+ 'Sie werden weitergeleitet.');
window.location = 'http://geomapfish.org/';
window.location.href = 'https://geomapfish.org/';
}


Expand Down
2 changes: 1 addition & 1 deletion contribs/gmf/apps/mobile_alt/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if (!window.requestAnimationFrame) {
+ 'Vous allez être redirigé.\n\n'
+ 'Ihr Browser wird nicht unterstützt, bitte aktualisieren Sie ihn oder verwenden Sie einen anderen. '
+ 'Sie werden weitergeleitet.');
window.location = 'http://geomapfish.org/';
window.location.href = 'https://geomapfish.org/';
}


Expand Down
2 changes: 1 addition & 1 deletion contribs/gmf/apps/oeedit/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if (!window.requestAnimationFrame) {
+ 'Vous allez être redirigé.\n\n'
+ 'Ihr Browser wird nicht unterstützt, bitte aktualisieren Sie ihn oder verwenden Sie einen anderen. '
+ 'Sie werden weitergeleitet.');
window.location = 'http://geomapfish.org/';
window.location.href = 'https://geomapfish.org/';
}


Expand Down
2 changes: 1 addition & 1 deletion contribs/gmf/apps/oeview/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if (!window.requestAnimationFrame) {
+ 'Vous allez être redirigé.\n\n'
+ 'Ihr Browser wird nicht unterstützt, bitte aktualisieren Sie ihn oder verwenden Sie einen anderen. '
+ 'Sie werden weitergeleitet.');
window.location = 'http://geomapfish.org/';
window.location.href = 'https://geomapfish.org/';
}


Expand Down
2 changes: 1 addition & 1 deletion contribs/gmf/src/controllers/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function bootstrap(module) {
if (dynamic['doRedirect']) {
const small_screen = window.matchMedia ? window.matchMedia('(max-width: 1024px)') : false;
if (small_screen && TOUCH) {
window.location = dynamic['redirectUrl'];
window.location.href = dynamic['redirectUrl'];
}
}

Expand Down
2 changes: 0 additions & 2 deletions contribs/gmf/src/themes.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,6 @@

/**
* @typedef {Object} GmfMetaData
* @property {Array.<string>} [copy_to] Names of layers on which the geometry can be copied to (in the
* edition mode). For WMS layers and only for CGXP ! (Use "copyable" in NGEO.).
* @property {boolean} [copyable=false] Whether the geometry from this data source can be copied to other data
* sources or not. For WMS layers.
* @property {Array.<string>} [directedFilterAttributes] List of attribute names which should have rules
Expand Down
4 changes: 2 additions & 2 deletions examples/popupservice.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ MainController.prototype.iframePopup = function() {
popup.setAutoDestroy(true);
popup.addClass('popup-with-iframe');
popup.setTitle('Iframe popup');
popup.setUrl('http://geomapfish.org/');
popup.setUrl('https://geomapfish.org/');
popup.setSize('400px', '300px');
popup.setOpen(true);
};
Expand Down Expand Up @@ -124,7 +124,7 @@ MainController.prototype.openPopupWithUrl = function() {
cls: 'popup-with-iframe',
height: '300px',
title: 'Opened with "open" and "iframe"',
url: 'http://geomapfish.org/',
url: 'https://geomapfish.org/',
width: '400px'
});
};
Expand Down

0 comments on commit 506fb16

Please sign in to comment.