mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
adding new client-side hook and post_uuid to composer template
This commit is contained in:
@@ -329,6 +329,10 @@ define(['taskbar'], function(taskbar) {
|
|||||||
composer.activateReposition(composer.active);
|
composer.activateReposition(composer.active);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(window).trigger('action:composer.loaded', {
|
||||||
|
post_uuid: post_uuid
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -55,7 +55,7 @@
|
|||||||
<button class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown" type="button" title="[[topic:posted_by]] {posts.username}">
|
<button class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown" type="button" title="[[topic:posted_by]] {posts.username}">
|
||||||
<i class="fa fa-circle status offline"></i>
|
<i class="fa fa-circle status offline"></i>
|
||||||
<span class="visible-xs-inline visible-md-inline"><img class="" src="{posts.picture}" width=18 height=18 /> </span>
|
<span class="visible-xs-inline visible-md-inline"><img class="" src="{posts.picture}" width=18 height=18 /> </span>
|
||||||
<span class="username-field" href="{relative_path}/user/{posts.userslug}" itemprop="author">{posts.username} </span>
|
<span class="username-field" href="{relative_path}/user/{posts.userslug}" itemprop="author" data-username="{posts.username}">{posts.username} </span>
|
||||||
<span class="caret"></span>
|
<span class="caret"></span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user