Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\NewtonTheme\Control\Comment\CommentAdd.ascx
??<%@ Control Language="C#" Inherits="AVA.ResourcesPlatform.WebUI.Control.Comment.CommentAdd" %> <div class="flat min-head"> <div class="head"> <div class="title"> ?????? </div> </div> <div class="body"> <div class="commentArea" id="commentArea"> <div class="commentAction"> <form id="frmComment" onsubmit="return false;"> <div class="comment-text-area"> <textarea class="default-text " cols="10" rows="4" name="CommentText" placeholder="?????????"></textarea> </div> <div class="toolbar"> <div class="action"> <%= new HtmlHidden("PKId",this.TargetGuid) %> <%= new HtmlHidden("TargetType", this.TargetType)%> </div> </div> <div class="sub_comment pull-right"> <%= new HtmlButton("??????", "CommentAdd", "CommentAddClient(this)")%> </div> </form> </div> </div> </div> </div> <script type="text/javascript"> //?????? $.validator.initConfig({ validatorGroup: "CommentAdd", form: "#frmComment", alertMessage: true, showMessage: false }); //??? $("#frmComment [name=CommentText]").formValidator({ validatorGroup: "CommentAdd", rules: { required: null }, message: { required: "???????????" } }); </script> <script type="text/javascript"> function CommentAddClient(send) { var currentVideoPosition = Helper.getCurrentVideoPositionJWP(); $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.CommentAdd", data: Global.GetFormValue($("#frmComment")), async: true, dataType: 'json', success: function (result) { $(send).val("??????"); flash("??????") Global.Disabled(send, false); $("#frmComment [name=CommentText]").val(""); GetCommentList(1); }, beforeSend: function () { $(send).val("??????..."); Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { $(send).val("??????"); Global.Disabled(send, false); var message = XMLHttpRequest.responseText; Global.Error(message); } }); } </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de