Replace spinners in javascript
This commit is contained in:
parent
28060080e8
commit
8bc7793d42
3 changed files with 1 additions and 3 deletions
Binary file not shown.
Before Width: | Height: | Size: 1.7 KiB |
|
@ -35,8 +35,6 @@ OSM = {
|
||||||
OPEN_NOTE_MARKER: <%= image_path("open_note_marker.png").to_json %>,
|
OPEN_NOTE_MARKER: <%= image_path("open_note_marker.png").to_json %>,
|
||||||
CLOSED_NOTE_MARKER: <%= image_path("closed_note_marker.png").to_json %>,
|
CLOSED_NOTE_MARKER: <%= image_path("closed_note_marker.png").to_json %>,
|
||||||
|
|
||||||
SEARCHING: <%= image_path("searching.gif").to_json %>,
|
|
||||||
|
|
||||||
apiUrl: function (object) {
|
apiUrl: function (object) {
|
||||||
var apiType = object.type === "note" ? "notes" : object.type;
|
var apiType = object.type === "note" ? "notes" : object.type;
|
||||||
var url = "/api/" + OSM.API_VERSION + "/" + apiType + "/" + object.id;
|
var url = "/api/" + OSM.API_VERSION + "/" + apiType + "/" + object.id;
|
||||||
|
|
|
@ -123,7 +123,7 @@ $(document).ready(function () {
|
||||||
$("input[name=legale]").change(function () {
|
$("input[name=legale]").change(function () {
|
||||||
var url = $(this).data("url");
|
var url = $(this).data("url");
|
||||||
|
|
||||||
$("#contributorTerms").html("<img src='" + OSM.SEARCHING + "' />");
|
$("#contributorTerms").html("<div class='spinner-border' role='status'><span class='visually-hidden'>" + I18n.t("browse.start_rjs.loading") + "</span></div>");
|
||||||
$("#contributorTerms").load(url);
|
$("#contributorTerms").load(url);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue