Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function saveModel(feedbackMessage) {
- cc.Ajax.jpost(urlSave, { feedbackMessage: feedbackMessage })
- .done(function (message, textStatus, jqXHR) {
- if (message.Status == 2) { // user not logged in
- openSignInModal(message.Data);
- }
- })
- }
- function openSignInModal(feedbackId) {
- var url = '/Account/LoginPartial';
- $.ajax({
- url: url,
- type: 'get',
- data: { returnUrl: '/Subscriber/Search', subTitle: feedbackNotSignedIn, modalTitle: '' },
- success: function (data, textStatus, jqXHR) {
- $('#pc_modal_container').html(data);
- $('#pc_modal').modal('show');
- },
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement