From 1c5ea70033b74a80c7d9196f8e6bb0a05260a605 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Sat, 16 Sep 2017 01:59:19 +0200 Subject: [PATCH] Update all URLs to point to mammooc.org --- mammooc-course-evaluation-form.html | 6 +++--- mammooc-course-evaluation.html | 2 +- mammooc-rating-widget.html | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mammooc-course-evaluation-form.html b/mammooc-course-evaluation-form.html index 72b96981b..45e82114c 100644 --- a/mammooc-course-evaluation-form.html +++ b/mammooc-course-evaluation-form.html @@ -100,7 +100,7 @@ -
+
@@ -190,7 +190,7 @@ _jsonPSubmit() { const serializedItems = this._serializeFormData(); - let url = "https://mammooc-dev.herokuapp.com/evaluations/save.js?callback=callback&"; + let url = "https://mammooc.org/evaluations/save.js?callback=callback&"; url = url + Object.keys(serializedItems).map(function(k) { return encodeURIComponent(k) + '=' + encodeURIComponent(serializedItems[k]) }).join('&'); @@ -240,7 +240,7 @@ } _generateUrl(provider, courseId) { - return 'https://mammooc-dev.herokuapp.com/api/current_user_with_evaluation.js?provider='+this.provider + '&course_id=' + this.courseId+'&callback=%%callback%%'; + return 'https://mammooc.org/api/current_user_with_evaluation.js?provider='+this.provider + '&course_id=' + this.courseId+'&callback=%%callback%%'; } _apiLoaded(response) { diff --git a/mammooc-course-evaluation.html b/mammooc-course-evaluation.html index 6dc3abf94..f9301cdfd 100644 --- a/mammooc-course-evaluation.html +++ b/mammooc-course-evaluation.html @@ -148,7 +148,7 @@ } _generateEvaluationUrl(provider, courseId, perPage, page) { - return "https://mammooc-dev.herokuapp.com/evaluations/export_course_evaluations?provider=" + provider + "&course_id=" + courseId + "&page=" + page + "&per_page=" + perPage; + return "https://mammooc.org/evaluations/export_course_evaluations?provider=" + provider + "&course_id=" + courseId + "&page=" + page + "&per_page=" + perPage; } _loadMoreData() { diff --git a/mammooc-rating-widget.html b/mammooc-rating-widget.html index df9b0fb8d..372a8498c 100644 --- a/mammooc-rating-widget.html +++ b/mammooc-rating-widget.html @@ -172,11 +172,11 @@ } _generateRatingUrl(provider, courseId) { - return "https://mammooc-dev.herokuapp.com/evaluations/export_overall_course_rating?provider=" + this.provider + "&course_id=" + this.courseId; + return "https://mammooc.org/evaluations/export_overall_course_rating?provider=" + this.provider + "&course_id=" + this.courseId; } _generateCourseUrl(provider, courseId) { - return "https://mammooc-dev.herokuapp.com/courses/" + this.provider + "~" + this.courseId; + return "https://mammooc.org/courses/" + this.provider + "~" + this.courseId; } _handleRatingResponse(request) {