diff --git a/app/assets/javascripts/discourse/controllers/topic.js.es6 b/app/assets/javascripts/discourse/controllers/topic.js.es6 index dc194d3fdad..76f40bbafb9 100644 --- a/app/assets/javascripts/discourse/controllers/topic.js.es6 +++ b/app/assets/javascripts/discourse/controllers/topic.js.es6 @@ -333,17 +333,6 @@ export default ObjectController.extend(Discourse.SelectedPostsCount, { this.get('content').clearPin(); }, - resetRead: function() { - Discourse.ScreenTrack.current().reset(); - this.unsubscribe(); - - var topicController = this; - this.get('model').resetRead().then(function() { - topicController.set('message', I18n.t("topic.read_position_reset")); - topicController.set('postStream.loaded', false); - }); - }, - replyAsNewTopic: function(post) { var composerController = this.get('controllers.composer'), quoteController = this.get('controllers.quote-button'), diff --git a/app/assets/javascripts/discourse/models/topic.js b/app/assets/javascripts/discourse/models/topic.js index a54f2d454f4..43fb4f526f9 100644 --- a/app/assets/javascripts/discourse/models/topic.js +++ b/app/assets/javascripts/discourse/models/topic.js @@ -194,13 +194,6 @@ Discourse.Topic = Discourse.Model.extend({ }); }, - // Reset our read data for this topic - resetRead: function() { - return Discourse.ajax("/t/" + this.get('id') + "/timings", { - type: 'DELETE' - }); - }, - /** Invite a user to this topic diff --git a/config/locales/client.cs.yml b/config/locales/client.cs.yml index 52abe646175..16a0199773e 100644 --- a/config/locales/client.cs.yml +++ b/config/locales/client.cs.yml @@ -635,7 +635,6 @@ cs: browse_all_categories: Projděte všechny kategorie view_latest_topics: si zobrazte populární témata suggest_create_topic: Co takhle založit nové téma? - read_position_reset: "Vaše pozice čtení byla zresetována." jump_reply_up: přejít na předchozí odpověď jump_reply_down: přejít na následující odpověď deleted: "Téma bylo smazáno" diff --git a/config/locales/client.da.yml b/config/locales/client.da.yml index 01f173638e3..31e51c0b070 100644 --- a/config/locales/client.da.yml +++ b/config/locales/client.da.yml @@ -744,7 +744,6 @@ da: browse_all_categories: Vis alle kategorier view_latest_topics: vis seneste emner suggest_create_topic: Hvorfor ikke oprette et emne? - read_position_reset: "Din læseposition er blevet nulstillet." jump_reply_up: hop til tidligere svar jump_reply_down: hop til senere svar deleted: "Emnet er blevet slettet" diff --git a/config/locales/client.de.yml b/config/locales/client.de.yml index 6cac46f94cc..0ff414079e9 100644 --- a/config/locales/client.de.yml +++ b/config/locales/client.de.yml @@ -744,7 +744,6 @@ de: browse_all_categories: Alle Kategorien durchsehen view_latest_topics: aktuelle Themen anzeigen suggest_create_topic: Möchtest du ein neues Thema erstellen? - read_position_reset: "Deine Lese-Position wurde zurückgesetzt." jump_reply_up: zur vorherigen Antwort springen jump_reply_down: zur nachfolgenden Antwort springen deleted: "Das Thema wurde gelöscht" diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index 56c4577c7ab..257b1a42eed 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -847,7 +847,6 @@ en: view_latest_topics: view latest topics suggest_create_topic: Why not create a topic? - read_position_reset: "Your read position has been reset." jump_reply_up: jump to earlier reply jump_reply_down: jump to later reply deleted: "The topic has been deleted" diff --git a/config/locales/client.es.yml b/config/locales/client.es.yml index 7d16324cba9..88644657a43 100644 --- a/config/locales/client.es.yml +++ b/config/locales/client.es.yml @@ -744,7 +744,6 @@ es: browse_all_categories: Ver todas las categorías view_latest_topics: ver los temas recientes suggest_create_topic: ¿Por qué no creas un tema? - read_position_reset: "Tu posición de lectura se ha reiniciado." jump_reply_up: saltar a respuesta anterior jump_reply_down: saltar a ultima respuesta deleted: "El tema ha sido borrado" diff --git a/config/locales/client.fr.yml b/config/locales/client.fr.yml index 1f1b6b6fc0d..9dcfde42519 100644 --- a/config/locales/client.fr.yml +++ b/config/locales/client.fr.yml @@ -744,7 +744,6 @@ fr: browse_all_categories: Voir toutes les catégories view_latest_topics: voir les derniers sujets suggest_create_topic: Pourquoi ne pas créer votre sujet ? - read_position_reset: "Votre position de lecture a été remise à zéro." jump_reply_up: aller à des réponses précédentes jump_reply_down: allez à des réponses ultérieures deleted: "Ce sujet a été supprimé" diff --git a/config/locales/client.he.yml b/config/locales/client.he.yml index 889179016e9..7f582f6d56f 100644 --- a/config/locales/client.he.yml +++ b/config/locales/client.he.yml @@ -739,7 +739,6 @@ he: browse_all_categories: עיין בכל הקטגוריות view_latest_topics: הצגת נושאים מדוברים suggest_create_topic: מדוע לא ליצור נושא? - read_position_reset: "מיקום הקריאה שלך אופס." jump_reply_up: קפיצה לתגובה קודמת jump_reply_down: קפיצה לתגובה מאוחרת deleted: "הנושא הזה נמחק" diff --git a/config/locales/client.it.yml b/config/locales/client.it.yml index 39850898c23..ccda6a75093 100644 --- a/config/locales/client.it.yml +++ b/config/locales/client.it.yml @@ -743,7 +743,6 @@ it: browse_all_categories: Scorri tutte le categorie view_latest_topics: visualizza i topic più recenti suggest_create_topic: Perchè non ne crei uno? - read_position_reset: "La tua posizione di lettura è stata resettata." jump_reply_up: Passa a una risposta precedente jump_reply_down: Passa a una risposta successiva deleted: "Il topic è stato cancellata" diff --git a/config/locales/client.ja.yml b/config/locales/client.ja.yml index 9adb5656b24..b2e07e45686 100644 --- a/config/locales/client.ja.yml +++ b/config/locales/client.ja.yml @@ -701,7 +701,6 @@ ja: browse_all_categories: 全てのカテゴリをブラウズする view_latest_topics: 最新のトピックを見る suggest_create_topic: 新しいトピックを作成しますか? - read_position_reset: "しおりがリセットされました。" jump_reply_up: 以前の回答へジャンプ jump_reply_down: 以後の回答へジャンプ deleted: "トピックは削除されました" diff --git a/config/locales/client.ko.yml b/config/locales/client.ko.yml index 2d315147bbb..d8c51278769 100644 --- a/config/locales/client.ko.yml +++ b/config/locales/client.ko.yml @@ -703,7 +703,6 @@ ko: browse_all_categories: 모든 카테고리 보기 view_latest_topics: 최신 토픽 보기 suggest_create_topic: 토픽(글)을 작성 해 보실래요? - read_position_reset: "당신의 읽기 위치가 재설정되었습니다." jump_reply_up: 이전 답글로 이동 jump_reply_down: 이후 답글로 이동 deleted: "토픽이 삭제되었습니다" diff --git a/config/locales/client.nb_NO.yml b/config/locales/client.nb_NO.yml index 5b0bbb45e0a..2975c5f064b 100644 --- a/config/locales/client.nb_NO.yml +++ b/config/locales/client.nb_NO.yml @@ -541,7 +541,6 @@ nb_NO: browse_all_categories: Se alle kategorier view_latest_topics: se siste emner suggest_create_topic: Hvorfor ikke lage ett emne? - read_position_reset: "Din leseposisjon har blitt tilbakestilt." jump_reply_up: hopp til tidligere svar jump_reply_down: hopp til siste svar deleted: "Emnet har blitt slettet" diff --git a/config/locales/client.nl.yml b/config/locales/client.nl.yml index c398fac1dd2..f86dbc1f761 100644 --- a/config/locales/client.nl.yml +++ b/config/locales/client.nl.yml @@ -680,7 +680,6 @@ nl: browse_all_categories: Bekijk alle categorieën view_latest_topics: bekijk nieuwste topics suggest_create_topic: Wil je een nieuwe topic schrijven? - read_position_reset: "Je leespositie is teruggezet naar het begin." jump_reply_up: ga naar een eerdere reactie jump_reply_down: ga naar een latere reactie deleted: "Deze topic is verwijderd" diff --git a/config/locales/client.pl_PL.yml b/config/locales/client.pl_PL.yml index 1e336bb4136..ffb1f4f5f4d 100644 --- a/config/locales/client.pl_PL.yml +++ b/config/locales/client.pl_PL.yml @@ -668,7 +668,6 @@ pl_PL: browse_all_categories: Przeglądaj wszystkie kategorie view_latest_topics: pokaż ostatnie tematy suggest_create_topic: Może rozpoczniesz temat? - read_position_reset: "Twoje miejsce czytania zostało zresetowane." jump_reply_up: przeskocz do wcześniejszej odpowiedzi jump_reply_down: przeskocz do późniejszej odpowiedzi deleted: "Temat został usunięty" diff --git a/config/locales/client.pt.yml b/config/locales/client.pt.yml index 1aceac33584..70abafb8378 100644 --- a/config/locales/client.pt.yml +++ b/config/locales/client.pt.yml @@ -723,7 +723,6 @@ pt: browse_all_categories: Procurar todas as categorias view_latest_topics: ver tópicos mais recentes suggest_create_topic: Que tal começar um assunto? - read_position_reset: "Sua posição de leitura foi reiniciado." jump_reply_up: avançar para resposta mais recente jump_reply_down: avançar para resposta mais antiga deleted: "Este tópico foi apagado" diff --git a/config/locales/client.pt_BR.yml b/config/locales/client.pt_BR.yml index 38e46aad12e..c684e5458ae 100644 --- a/config/locales/client.pt_BR.yml +++ b/config/locales/client.pt_BR.yml @@ -744,7 +744,6 @@ pt_BR: browse_all_categories: Procurar em todas as categorias view_latest_topics: ver tópicos mais recentes suggest_create_topic: Que tal criar um tópico? - read_position_reset: "Sua posição de leitura foi reiniciada." jump_reply_up: pular para a resposta mais recente jump_reply_down: pular para a resposta mais antiga deleted: "Este tópico foi apagado" diff --git a/config/locales/client.ru.yml b/config/locales/client.ru.yml index 57bca1a4ac5..a63a251d4c5 100644 --- a/config/locales/client.ru.yml +++ b/config/locales/client.ru.yml @@ -785,7 +785,6 @@ ru: browse_all_categories: Просмотреть все разделы view_latest_topics: посмотреть последние темы suggest_create_topic: Почему бы вам не создать новую тему? - read_position_reset: "Закладка перемещена." jump_reply_up: перейти к более ранним ответам jump_reply_down: перейти к более поздним ответам deleted: "Тема удалена" diff --git a/config/locales/client.sv.yml b/config/locales/client.sv.yml index 3a0f5cfec23..c9b80f612ae 100644 --- a/config/locales/client.sv.yml +++ b/config/locales/client.sv.yml @@ -684,7 +684,6 @@ sv: browse_all_categories: Bläddra bland alla kategorier view_latest_topics: se de senaste trådarna suggest_create_topic: Varför inte skapa en tråd? - read_position_reset: "Din läsposition har blivit återställd." jump_reply_up: hoppa till tidigare svar jump_reply_down: hoppa till senare svar deleted: "Tråden har raderats" diff --git a/config/locales/client.uk.yml b/config/locales/client.uk.yml index 12749ce291d..6041b2c56b8 100644 --- a/config/locales/client.uk.yml +++ b/config/locales/client.uk.yml @@ -584,7 +584,6 @@ uk: browse_all_categories: Переглянути всі категорії view_latest_topics: перегляньте останні теми suggest_create_topic: Чому б не створити тему? - read_position_reset: "Дані про прочитану Вами позицію було скинуто." jump_reply_up: перейти до ранішої відповіді jump_reply_down: перейти до пізнішої відповіді deleted: "Тему було видалено" diff --git a/config/locales/client.zh_CN.yml b/config/locales/client.zh_CN.yml index 851f9c87511..f596fb4f4cb 100644 --- a/config/locales/client.zh_CN.yml +++ b/config/locales/client.zh_CN.yml @@ -706,7 +706,6 @@ zh_CN: browse_all_categories: 浏览所有分类 view_latest_topics: 浏览最新主题 suggest_create_topic: 马上创建一个主题吧! - read_position_reset: "您的阅读位置已经被重置。" jump_reply_up: 跳转至更早的回复 jump_reply_down: 跳转至更晚的回复 deleted: "此主题已被删除" diff --git a/config/locales/client.zh_TW.yml b/config/locales/client.zh_TW.yml index 06d026214f9..3463985e4d0 100644 --- a/config/locales/client.zh_TW.yml +++ b/config/locales/client.zh_TW.yml @@ -662,7 +662,6 @@ zh_TW: browse_all_categories: 瀏覽所有分類 view_latest_topics: 檢視最近的文章 suggest_create_topic: 建立一個新討論話題吧? - read_position_reset: "你的閱讀位置已重設。" jump_reply_up: jump to earlier reply jump_reply_down: jump to later reply deleted: "此討論話題已被刪除"