Runnin' Utes release full schedule for 2017-18 season

Runnin' Utes release full schedule for 2017-18 season

Runnin' Utes release full schedule for 2017-18 season | KSL.com

'; html += ''; } else { //html += '

Comment removed by Moderator

'; } html += ''; return html; }, /** * * @param Object opts Must specify the following key: { sort:, append: } */ loadMore: function(opts){ var args = { sid: consts.SID, size: this.props.pageSize, append: false, sort: opts.sort || $('.ctx-menu--option__active a').attr('data-value') || '' }; var self = this; var pendingXhr = ++this.state.lastXhr; var comments = this.state.comments[args.sort]; var loadingIndicator = 'commentsLoadingIndicator'; if (!comments) { comments = { page: 1, data: [], votes: { m: {}, v: {} } }; this.state.comments[args.sort] = comments; } if (opts.next) { comments.page += 1; } if (comments.data.length >= Math.min(comments.page * this.props.pageSize, consts.TOTAL_COMMENTS)) { self.els.commentsContentContainer.html(comments.data); $('.pagesize').text(comments.data.length); kslEventBus.emit(kslEventBus.eventTypes.commentsLoaded, { page: ++self.state.pagesLoaded, }); return; } if (this.state.commentCount === 0) { this.els.commentsContainer.find('#commentBoard').html('Loading...'); } args.page = comments.page; this.state.loadingNode = true; this.els.commentsContentContainer.fadeTo(100, 0.5); $.post(this.url.backend, args).then(function(res) { self.state.loadingNode = false; self.els.commentsContentContainer.fadeTo(100, 1.0); $('#' + loadingIndicator).remove(); if (res.comments == null || !res.comments.status) { return; } if (res.votes) { $.extend(comments.votes.v, res.votes.response.v || {}); $.extend(comments.votes.m, res.votes.response.m || {}); } if(res.sort != 'rejected') { var rows = $.map(res.comments.response, function (row) { return self.onEachComment(row, comments.votes); }); } else { var rows = $.map(res.comments.response, function (row) { return self.onEachRejectedComment(row); }); } $.merge(comments.data, rows); if (pendingXhr !== self.state.lastXhr) { return; } if (opts.append) { self.els.commentsContentContainer.append(rows); } else { self.els.commentsContentContainer.html(comments.data); } self.state.commentCount = comments.data.length; var commentCount = self.state.commentCount; if (commentCount >= consts.TOTAL_COMMENTS) {// What is this about???? ---> || consts.TOTAL_COMMENTS - commentCount - 1 = insertPoint) { $comments.eq(insertPoint - 1).append(this.els.tmplCommentAd.html()); } } setTimeout(KSL.news.dfp.loadAds, 0); } }; kslEventBus.on(kslEventBus.eventTypes.commentsLoaded, $.proxy(kslComments.loadCommentAd, kslComments)); kslEventBus.on('comments.fetch', $.proxy(kslComments.loadMore, kslComments)); $(kslComments.els.commentsBubble).on('click', function(){ kslComments.display('Top'); }); $(kslComments.els.commentsLoadBtn).on('click', function(){ kslComments.display('Bottom'); }); $(kslComments.els.commentsLoadMoreBtn).on('click', function(){ var args = { next: true, append: true }; kslEventBus.emit('comments.fetch', args); }); var kslCommentsSorting = { state: { selected: $('.ctx-menu--option__active a').attr('data-value') }, els: { container: $('#commentSorting'), button: $('#commentSorting').find('a') }, onSelect: function(event){ event.preventDefault(); var selected = $(this).attr('data-value'); if (selected !== kslCommentsSorting.state.selected) { kslCommentsSorting.state.selected = selected; $('.ctx-menu--option__active').removeClass('ctx-menu--option__active'); $('.ctx-menu--option').find('a[data-value=' + selected + ']').parent().addClass('ctx-menu--option__active'); var args = { sort: selected }; if(selected != 'rejected') { $('#loadMore').show(); } else { $('#loadMore').hide(); } kslEventBus.emit('comments.fetch', args); } } }; kslCommentsSorting.els.button.on('click', kslCommentsSorting.onSelect); $body.on('click', '.thumb', function() { var vals = $(this).attr('alt'); vals = vals.split(':'); var msgid = vals[0]; var owner = vals[1]; var ct = 0; if($("div[id^=emsg_]").length > 0) { $("div[id^=emsg_]").remove(); } var newtag = 'You must be logged in to cast your vote.
login here'; $("#cmt_meta_"+ msgid).before(newtag); }); $('.reauth-box').on('click', 'button[data-intent=close]', function() { $('.fadeMe, .reauth-box').hide(); }); $('.reauth-box').on('click', 'h3', function() { data = {}; data.email = $("#reauth_email").val(); data.password = $("#reauth_password").val(); data.ajax = '1'; $.post( "https://www.ksl.com/member/login?", data) .done(function(data) { var json = JSON.parse(data); id = json['data']['id']; if(typeof id != 'undefined') { $('.fadeMe, .reauth-box').remove(); login = true; location.reload(); //reload page to reset SESSION array data } else { error = json['data']['errors']['login']; $('.reauth-box .error').html(error); $('.reauth-box .error').css({"display" : "block"}); } }); }); $body.on('mouseenter', '.thumb', function() { $(this).find('.voteHoverBox').fadeIn('fast'); }).on('mouseleave','.buttonBox', function() { $(this).find('.voteHoverBox').fadeOut('fast'); }); });

Source : https://www.ksl.com/?sid=45865201&nid=635&title=runnin-utes-release-full-schedule-for-2017-18-season

Related Posts