PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/BlogEngine/BlogEngine.NET/admin/Posts/Tags.aspx

#
ASP.NET | 47 lines | 46 code | 1 blank | 0 comment | 0 complexity | 8bb5abd759b25dfb9642e36cf4d4e52a MD5 | raw file
 1<%@ Page Title="" Language="C#" MasterPageFile="~/admin/admin.master" AutoEventWireup="true" CodeFile="Tags.aspx.cs" Inherits="Admin.Posts.Tags" %>
 2<%@ Register src="Menu.ascx" tagname="TabMenu" tagprefix="menu" %>
 3
 4<asp:Content ID="Content1" ContentPlaceHolderID="cphAdmin" runat="Server">
 5    <script type="text/javascript" src="../jquery.tipsy.js"></script>
 6    <script type="text/javascript">
 7        LoadTags(1);
 8        function LoadTags(page) {
 9            $.ajax({
10                url: SiteVars.ApplicationRelativeWebRoot + "admin/AjaxHelper.aspx/LoadTags",
11                data: "{'page':'" + page + "'}",
12                type: "POST",
13                contentType: "application/json; charset=utf-8",
14                dataType: "json",
15                beforeSend: onAjaxBeforeSend,
16                success: function (msg) {
17                    $('#Container').setTemplateURL('../../Templates/tags.htm', null, { filter_data: false });
18                    $('#Container').processTemplate(msg);
19                    SaveOriginalIdValues('#Container tr', '.editable');
20                }
21            });
22            return false;
23        }
24        function OnAdminDataSaved() {
25            LoadTags(1);
26        }
27        $(document).ready(function () {
28            $(".tableToolBox a").click(function () {
29                $(".tableToolBox a").removeClass("current");
30                $(this).addClass("current");
31            });
32        });
33    </script>
34	<div class="content-box-outer">
35		<div class="content-box-right">
36			<menu:TabMenu ID="TabMenu" runat="server" />
37		</div>
38		<div class="content-box-left">
39            <h1><%=Resources.labels.tags %></h1>
40            <div class="tableToolBox">
41                <div class="Pager"></div>
42            </div>
43            <div id="Container"></div>
44            <div class="Pager"></div>
45        </div>
46    </div>
47</asp:Content>