From: Argiris K. <be...@us...> - 2005-12-20 13:11:18
|
Update of /cvsroot/magicajax/magicajax/Core/UI/Controls In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19720/Core/UI/Controls Modified Files: AjaxPanel.cs Log Message: Removed the 'script' postfix from the javascript functions. Index: AjaxPanel.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/UI/Controls/AjaxPanel.cs,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** AjaxPanel.cs 18 Dec 2005 16:44:46 -0000 1.39 --- AjaxPanel.cs 20 Dec 2005 13:11:08 -0000 1.40 *************** *** 809,813 **** #region ExtendedWriteSetHtmlOfElementScript /// <summary> ! /// Calls the AJAXCbo.ExtendedSetHtmlOfElementScript function on the client. /// </summary> /// <remarks> --- 809,813 ---- #region ExtendedWriteSetHtmlOfElementScript /// <summary> ! /// Calls the AJAXCbo.ExtendedSetHtmlOfElement function on the client. /// </summary> /// <remarks> *************** *** 816,820 **** /// AjaxPanel doesn't include RenderedByScriptControl controls in the html rendering, /// to reduce the size of the javascript script sent to clients. ! /// AJAXCbo.ExtendedSetHtmlOfElementScript finds the RenderedByScriptControl controls /// that are missing from the html rendering, gets them from the page of the client /// and adds them in the appropriate place in the html rendering. --- 816,820 ---- /// AjaxPanel doesn't include RenderedByScriptControl controls in the html rendering, /// to reduce the size of the javascript script sent to clients. ! /// AJAXCbo.ExtendedSetHtmlOfElement finds the RenderedByScriptControl controls /// that are missing from the html rendering, gets them from the page of the client /// and adds them in the appropriate place in the html rendering. *************** *** 824,828 **** private void ExtendedWriteSetHtmlOfElementScript(string html, string elementID) { ! AjaxCallHelper.Write( String.Format("AJAXCbo.ExtendedSetHtmlOfElementScript({0},\"{1}\");\r\n", AjaxCallHelper.EncodeString(html), elementID) ); } #endregion --- 824,828 ---- private void ExtendedWriteSetHtmlOfElementScript(string html, string elementID) { ! AjaxCallHelper.Write( String.Format("AJAXCbo.ExtendedSetHtmlOfElement({0},\"{1}\");\r\n", AjaxCallHelper.EncodeString(html), elementID) ); } #endregion *************** *** 1238,1242 **** // The hidden field is already registered at OnLoad event. // Set its value by javascript. ! page.RegisterStartupScript(panelKey + "VALUESET", String.Format("<script type='text/javascript'>AJAXCbo.SetFieldIfEmptyScript(\"{0}\",{1});</script>", panelKey, AjaxCallHelper.EncodeString(serializedPanelFingerprints))); } --- 1238,1242 ---- // The hidden field is already registered at OnLoad event. // Set its value by javascript. ! page.RegisterStartupScript(panelKey + "VALUESET", String.Format("<script type='text/javascript'>AJAXCbo.SetFieldIfEmpty(\"{0}\",{1});</script>", panelKey, AjaxCallHelper.EncodeString(serializedPanelFingerprints))); } |