feed/assets/plugins/pokes/js/pokes.js
/*delete poke suggest & recived from friends*/
delete poke suggest & recived from friends
delete poke suggest & recived from friends
function delete_poke(self){ 
         var id = self.closest('.poke').attr('data-id');
         self.closest('.poke').addClass('x-hidden');
		 self.prop('disabled', true);
         $.ajax({ type: 'post', url: site_ajax, data: {'f':'pokes', 's':'delete', 'owner_id':id, 'only':'pokes' }, cache : false, success: function(result) { 
				 self.prop('disabled', false);
				 if(result.result == 1){ 
					 self.closest('.poke').remove();
				 } else { 
					 self.closest('.poke').removeClass('x-hidden'); modal('#modal-message', {title: 'Error', message: result.message});
				 }			 
			 }
         });
     }
function delete_poke ( self ) { var id = self . closest ( '.poke' ) . attr ( 'data-id' ) ; self . closest ( '.poke' ) . addClass ( 'x-hidden' ) ; self . prop ( 'disabled' , true ) ; $ . ajax ( { type : 'post' , url : site_ajax , data : { 'f' : 'pokes' , 's' : 'delete' , 'owner_id' : id , 'only' : 'pokes' } , cache : false , success : function ( result ) { self . prop ( 'disabled' , false ) ; if ( result . result == 1 ) { self . closest ( '.poke' ) . remove ( ) ; } else { self . closest ( '.poke' ) . removeClass ( 'x-hidden' ) ; modal ( '#modal-message' , { title : 'Error' , message : result . message } ) ; } } } ) ; }
delete poke suggest & recived from friends
delete poke suggest & recived from friends