Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- e(".register-step-2").on("click", (function (i) {
- var lect = $('#is_lec_reg').is(':checked')
- if (lect) {
- Object(u.b)(e("#popup-lector"))
- console.log(lect)
- } else {
- $("#form_register").submit();
- }
- })),
- ——————————————————————————
- value: function () {
- // e(".button-reset-password").on("click", (function (t) {
- // t.preventDefault();
- // var i = e(".registration-tabs-pane.active .form-control"),
- // n = i.val();
- // n && !i.is(".error") && (i.removeClass("error error-required"), i.prev(".select2").removeClass("error"), Object(u.b)(e("#popup-password-send"))), n && i.is(".error") && i.removeClass("error-required"), n || (i.addClass("error error-required"), i.prev(".select2").addClass("error"))
- // })), e(".button-resend-password").on("click", (function (e) {
- // e.preventDefault()
- // })), e(".button-change-password").on("click", (function (t) {
- // t.preventDefault(), Object(u.b)(e("#popup-password-change-success"))
- // }))
- ——————————————————————
- var t = e(".popup-lector-send-review");
- t && 0 === t.length || t.on("click", (function (t) {
- var raiting = $('.gl-selected').attr('data-value');
- var lector_id = $('#lector_id').val()
- var text = $('#reviews_text').val()
- $.get("/set_reviews/", {
- raiting_star: raiting,
- lector: lector_id,
- reviews_text: text
- }).done(function (data) {
- if (data === '200') {
- t.preventDefault(), Object(o.a)(e("#popup-lector-review")), Object(o.b)(e("#popup-lector-review-thankyou"))
- } else {
- Object(o.b)(e("#popup-lector-review-not-auntification"))
- }
- });
- }))
- ——————————————————————
- c = e(".account-edit-additional-specializations");
- d.on("click", (function (t) {
- t.preventDefault(), e.ajax({
- url: "/users/get-user-categories/",
- success: function (e) {
- c.append(e), Object(r.a)(), Object(a.a)()
- }
- })
- —————————————————————
- function n() {
- // "yes" !== window.localStorage.getItem("access-popup") && Object(a.b)(l()("#popup-access")), l()(".popup-access-accept").on("click", (function () {
- // window.localStorage.setItem("access-popup", "yes"), Object(a.a)(l()("#popup-access"))
- // })), l()(".popup-access-dismiss").on("click", (function () {
- // window.close()
- // }))
- }
- ——————————————————————
- function r() {
- let url = '/polls/get_last_answer_user_views/';
- $.ajax({
- url: url,
- dataType: 'json',
- success: function (response) {
- if (response) {
- var e = l()("#popup-rating");
- "yes" !== window.localStorage.getItem("rating-popup") && Object(a.b)(e);
- e.find(".rating-stars-select").on("change", (function (e) {
- var t = l()(e.currentTarget),
- i = t.parents(".rating-stars").next(".popup-rating-textarea");
- 9 > parseInt(t.val()) ? i.addClass("show") : i.removeClass("show")
- }));
- }
- },
- error: function (response) { }
- })
- l()(".popup-rating-accept").on("click", (function () {
- var arr = {
- "scale_num": $('.gl-selected').attr('data-value'),
- "text_amsweres": $('#RaitingControlTextarea1').val()
- };
- let url = '/polls/nps_metric_create_views/';
- $.ajax({
- url: url,
- type: 'POST',
- data: JSON.stringify(arr),
- contentType: 'application/json; charset=utf-8',
- dataType: 'json',
- async: false,
- success: function (msg) {
- $('#popup-rating').removeClass('popup-show');
- $('body').removeClass('overflow-hidden');
- }
- });
- })),
- l()(".popup-rating-dismiss").on("click", (function () {
- console.log($('.gl-selected').attr('data-value'))
- if ($('.gl-selected').attr('data-value') != '0' && $('.gl-selected').attr('data-value') != undefined) {
- let text = '';
- if ($('#RaitingControlTextarea1').val() != '') {
- text = $('#RaitingControlTextarea1').val();
- }
- var arr = {
- "scale_num": $('.gl-selected').attr('data-value'),
- "text_amsweres": text
- };
- let url = '/polls/nps_metric_create_views/';
- $.ajax({
- url: url,
- type: 'POST',
- data: JSON.stringify(arr),
- contentType: 'application/json; charset=utf-8',
- dataType: 'json',
- async: false,
- success: function (msg) {
- $('#popup-rating').removeClass('popup-show');
- $('body').removeClass('overflow-hidden');
- },
- error: function (response) { }
- });
- }
- if ($('.gl-selected').attr('data-value') == undefined) {
- let url = '/polls/set_sessions_block_date_views/';
- $.ajax({
- url: url,
- type: 'GET',
- contentType: 'application/json; charset=utf-8',
- dataType: 'json',
- async: false,
- success: function (msg) {
- $('#popup-rating').removeClass('popup-show');
- $('body').removeClass('overflow-hidden');
- },
- error: function (response) { }
- });
- }
- }))
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement