Friday, July 11, 2014

Kuzbassovtsev night see superlunie – TVNZ

‘); }, Success: function (response) {if (response.errorCode == 0) {container.empty (); var i = 0; var new_count = 0; for (; i ‘, {class: response.result [i]. readed?’ noticeBlock ‘:’ noticeBlock notRead ‘, title: response.result [i]. readed?’ read the notice ‘:’ unread notification ‘, href: response.result [i]. url, id: ‘noticeBlock_’ + response.result [i]. id}); elem.data ({id_read: response.result [i]. id}); if (! response.result [i]. readed) {new_count + +; / / Need send message – message is read! elem.on (‘click’, function (e) {var target = KPjQuery (this); var data = ‘key =’ + ApolloApi.getUserInfo (). sosh_o + ‘& ids =’ + target.data (‘id_read ‘); KPjQuery.ajax ({url:’ / _ajax / profile_informer? ts = ‘+ (new Date ()). getTime (), type:’ POST ‘, timeout: 5000, cache: false, dataType:’ json ‘ , ‘data’: data, success: function () {window.location.href = target.attr (‘href’);}, error: function () {window.location.href = target.attr (‘href’) ; }}); return false; }); } Elem.html (‘ ‘+ response.result [i]. text +’ ‘); container.append (elem); } / / Not be found notices if (i == 0) {container.html (‘

You have no notifications.

‘); } Else if (new_count> 0) {KPjQuery (‘# jewel_new’). AddClass (‘new’). RemoveClass (‘new-none’). Html (‘‘ + new_count + ‘‘ ); }}}}); KPjQuery (‘# informer’). AddClass (‘dropDown’); KPjQuery (‘# informer’). RemoveClass (‘hideDropDown’); informer_show = 1; } Else {KPjQuery (‘# informer’). AddClass (‘hideDropDown’); KPjQuery (‘# informer’). RemoveClass (‘dropDown’); informer_show = 0; } Return false; });

No comments:

Post a Comment