mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-11-04 01:12:08 +01:00 
			
		
		
		
	Move default profile picture in member app
This commit is contained in:
		@@ -122,7 +122,7 @@ function displayStyle (note) {
 | 
			
		||||
 */
 | 
			
		||||
function displayNote (note, alias, user_note_field = null, profile_pic_field = null) {
 | 
			
		||||
    if (!note.display_image) {
 | 
			
		||||
        note.display_image = '/media/pic/default.png';
 | 
			
		||||
        note.display_image = '/static/member/img/default_picture.png';
 | 
			
		||||
    }
 | 
			
		||||
    let img = note.display_image;
 | 
			
		||||
    if (alias !== note.name && note.name)
 | 
			
		||||
 
 | 
			
		||||
@@ -158,7 +158,7 @@ function reset() {
 | 
			
		||||
    $("#consos_list").html("");
 | 
			
		||||
    $("#note").val("");
 | 
			
		||||
    $("#note").attr("data-original-title", "").tooltip("hide");
 | 
			
		||||
    $("#profile_pic").attr("src", "/media/pic/default.png");
 | 
			
		||||
    $("#profile_pic").attr("src", "/static/member/img/default_picture.png");
 | 
			
		||||
    $("#profile_pic_link").attr("href", "#");
 | 
			
		||||
    refreshHistory();
 | 
			
		||||
    refreshBalance();
 | 
			
		||||
 
 | 
			
		||||
@@ -40,7 +40,7 @@ function reset(refresh=true) {
 | 
			
		||||
    $("#first_name").val("");
 | 
			
		||||
    $("#bank").val("");
 | 
			
		||||
    $("#user_note").val("");
 | 
			
		||||
    $("#profile_pic").attr("src", "/media/pic/default.png");
 | 
			
		||||
    $("#profile_pic").attr("src", "/static/member/img/default_picture.png");
 | 
			
		||||
    $("#profile_pic_link").attr("href", "#");
 | 
			
		||||
    if (refresh) {
 | 
			
		||||
        refreshBalance();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user