Skip to content

Commit

Permalink
使dynamic标签的elementId可以被获取
Browse files Browse the repository at this point in the history
Signed-off-by: ben <ben302010@live.cn>
  • Loading branch information
liangminhua committed Jun 16, 2021
1 parent 0660f1f commit c4c771f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/SSCMS.Core/StlParser/StlElement/StlDynamic.Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public static async Task<string> GetScriptAsync(IParseManager parseManager, stri
<script type=""text/javascript"" language=""javascript"">
function stlDynamic{elementId}(page)
{{
var elementId = '{elementId}';
document.getElementById('{elementId}_loading').style.display = '{display}';
document.getElementById('{elementId}_success').style.display = 'none';
document.getElementById('{elementId}_failure').style.display = 'none';
Expand Down

0 comments on commit c4c771f

Please sign in to comment.