Lots of work to fix the jQuery plugin leanModal (and, presumably, many others)
This commit is contained in:
+13
-14
@@ -1,17 +1,17 @@
|
||||
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Master-v5.master.cs" Inherits="Activizr.MasterV5" %>
|
||||
<%@ Register Src="~/Controls/v5/Base/LanguageSelector.ascx" TagName="LanguageSelector" TagPrefix="act5" %>
|
||||
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head id="Head1" runat="server">
|
||||
<head runat="server">
|
||||
<!-- jQuery and plugins -->
|
||||
<script language="javascript" type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" ></script>
|
||||
<script language="javascript" type="text/javascript" src="/Scripts/jquery.leanModal.min.js" ></script>
|
||||
<!-- fonts -->
|
||||
<link href='https://fonts.googleapis.com/css?family=Permanent+Marker' rel='stylesheet' type='text/css' />
|
||||
<link href='https://fonts.googleapis.com/css?family=Ubuntu:light,regular,500,bold' rel='stylesheet' type='text/css' />
|
||||
<link href='https://fonts.googleapis.com/css?family=Arimo:regular,italic,bold,bolditalic' rel='stylesheet' type='text/css' />
|
||||
<!-- jQuery -->
|
||||
<script language="javascript" type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" ></script>
|
||||
<!-- page title -->
|
||||
<title>Activizr - Pirate Edition</title>
|
||||
<!-- telerik style sheet manager, followed by style sheet -->
|
||||
@@ -19,19 +19,18 @@
|
||||
<link href="/Style/style-v5.css" rel="stylesheet" type="text/css" />
|
||||
<!-- additional scripts etc from individual pages -->
|
||||
<asp:ContentPlaceHolder id="PlaceHolderHead" runat="server" />
|
||||
<asp:Literal ID="LiteralCrowdinScript" runat="server" />
|
||||
<asp:Literal ID="LiteralCrowdinScript" runat="server" Text="" />
|
||||
|
||||
<!-- initialize all modal popups -->
|
||||
<script language="javascript" type="text/javascript">
|
||||
$(function () {
|
||||
$("a[rel*=leanModal]").leanModal();
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form2" runat="server">
|
||||
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
|
||||
<Scripts>
|
||||
<%--Needed for JavaScript IntelliSense in VS2010--%>
|
||||
<%--For VS2008 replace RadScriptManager with ScriptManager--%>
|
||||
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
|
||||
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
|
||||
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
|
||||
</Scripts>
|
||||
</telerik:RadScriptManager>
|
||||
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
|
||||
<script type="text/javascript">
|
||||
//Put your JavaScript code here.
|
||||
</script>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Master-v5.master" AutoEventWireup="true" CodeFile="UploadBankFiles.aspx.cs" Inherits="Activizr.Site.Pages.Ledgers.UploadBankFiles" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderHead" Runat="Server">
|
||||
<script src="/Scripts/jquery.leanModal.min.js" type="text/javascript"></script>
|
||||
|
||||
<style type="text/css">
|
||||
input.FileTypeImage
|
||||
{
|
||||
@@ -74,15 +74,12 @@ div.BankUploadInstructionsImage
|
||||
-webkit-box-shadow: 0 0 4px rgba(0,0,0,0.7);
|
||||
-moz-box-shadow: 0 0px 4px rgba(0,0,0,0.7);
|
||||
}
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$('a[rel*=leanModal]').leanModal();
|
||||
});
|
||||
if (!(jQuery().leanModal)) {
|
||||
alert('LeanModal plug-in has not been successfully loaded!');
|
||||
}
|
||||
</script>
|
||||
|
||||
</asp:Content>
|
||||
@@ -112,8 +109,15 @@ div.BankUploadInstructionsImage
|
||||
<div style="clear:both"></div>
|
||||
</div>
|
||||
<div id="ModalDownloadInstructions">
|
||||
<asp:Image runat="server" ID="ImageDownloadInstructionsFull" /><br/><br/>
|
||||
<asp:Literal ID="LiteralDownloadInstructionsModal" runat="server" />
|
||||
<asp:UpdatePanel ID="PanelInstructions" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<span style="text-align:center"><asp:Image runat="server" ID="ImageDownloadInstructionsFull" /></span><br /><br /><hr /><br />
|
||||
<asp:Literal ID="LiteralDownloadInstructionsModal" runat="server" />
|
||||
</ContentTemplate>
|
||||
<Triggers>
|
||||
<asp:AsyncPostbackTrigger ControlID="ButtonSebAccountFile" EventName="Click" />
|
||||
</Triggers>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</asp:Content>
|
||||
|
||||
|
||||
@@ -46,6 +46,15 @@ namespace Activizr.Site.Pages.Ledgers
|
||||
this.ButtonSebAccountFile.Enabled = false;
|
||||
this.ButtonSebPaymentFile.Enabled = false;
|
||||
|
||||
this.ImageDownloadInstructions.ImageUrl = "~/Images/Ledgers/uploadbankfiles-seb-kontoutdrag-small.png";
|
||||
|
||||
this.ImageDownloadInstructionsFull.ImageUrl =
|
||||
"~/Images/Ledgers/uploadbankfiles-seb-kontoutdrag-full.png";
|
||||
|
||||
this.LiteralDownloadInstructions.Text =
|
||||
this.LiteralDownloadInstructionsModal.Text =
|
||||
Resources.Pages.Ledgers.UploadBankFiles_DownloadInstructionsSebAccountFile;
|
||||
|
||||
}
|
||||
|
||||
private void PopulateAccountDropDown()
|
||||
@@ -65,7 +74,7 @@ namespace Activizr.Site.Pages.Ledgers
|
||||
|
||||
protected void DropAccounts_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.LiteralSelectAccountDivStyle.Text = @"style=""opacity=1;display:inline""";
|
||||
this.LiteralSelectAccountDivStyle.Text = @"style=""opacity:1;display:inline""";
|
||||
|
||||
if (this.DropAccounts.SelectedIndex > -2)
|
||||
{
|
||||
@@ -73,14 +82,6 @@ namespace Activizr.Site.Pages.Ledgers
|
||||
"$(\"#DivInstructions\").fadeTo('slow',1.0);", true);
|
||||
ScriptManager.RegisterClientScriptBlock(this.Panel1, this.Panel1.GetType(), "ShowInstructions",
|
||||
"$(\"#DivInstructions\").css('display','inline');", true);
|
||||
|
||||
this.LiteralDownloadInstructions.Text =
|
||||
this.LiteralDownloadInstructionsModal.Text =
|
||||
Resources.Pages.Ledgers.UploadBankFiles_DownloadInstructionsSebAccountFile;
|
||||
|
||||
this.ImageDownloadInstructions.ImageUrl = "~/Images/Ledgers/uploadbankfiles-seb-kontoutdrag-small.png";
|
||||
this.ImageDownloadInstructionsFull.ImageUrl =
|
||||
"~/Images/Ledgers/uploadbankfiles-seb-kontoutdrag-full.png";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="LeanModal-Master.master.cs" Inherits="Tests_LeanModal_Master" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head id="Head1" runat="server">
|
||||
<!-- jQuery and plugins -->
|
||||
<script language="javascript" type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" ></script>
|
||||
<script language="javascript" type="text/javascript" src="/Scripts/jquery.leanModal.min.js" ></script>
|
||||
<!-- fonts -->
|
||||
<link href='https://fonts.googleapis.com/css?family=Permanent+Marker' rel='stylesheet' type='text/css' />
|
||||
<link href='https://fonts.googleapis.com/css?family=Ubuntu:light,regular,500,bold' rel='stylesheet' type='text/css' />
|
||||
<link href='https://fonts.googleapis.com/css?family=Arimo:regular,italic,bold,bolditalic' rel='stylesheet' type='text/css' />
|
||||
<!-- page title -->
|
||||
<title>Activizr - Pirate Edition</title>
|
||||
<!-- telerik style sheet manager, followed by style sheet -->
|
||||
<telerik:RadStyleSheetManager id="RadStyleSheetManager" runat="server" />
|
||||
<link href="/Style/style-v5.css" rel="stylesheet" type="text/css" />
|
||||
<!-- additional scripts etc from individual pages -->
|
||||
<asp:ContentPlaceHolder id="PlaceHolderHead" runat="server" />
|
||||
<asp:Literal ID="LiteralCrowdinScript" runat="server" Text="" />
|
||||
|
||||
<!-- initialize all modal popups -->
|
||||
<script language="javascript" type="text/javascript">
|
||||
$(function () {
|
||||
$("a[rel*=leanModal]").leanModal();
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form2" runat="server">
|
||||
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
|
||||
<script type="text/javascript">
|
||||
//Put your JavaScript code here.
|
||||
</script>
|
||||
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
|
||||
</telerik:RadAjaxManager>
|
||||
|
||||
<telerik:RadSkinManager ID="RadSkinManager1" Runat="server" Skin="WebBlue">
|
||||
</telerik:RadSkinManager>
|
||||
|
||||
<asp:ContentPlaceHolder ID="PlaceHolderMain" runat="server" />
|
||||
<asp:ContentPlaceHolder ID="PlaceHolderSide" runat="server" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
public partial class Tests_LeanModal_Master : System.Web.UI.MasterPage
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="LeanModal-NoMaster.aspx.cs" Inherits="Tests_LeanModal_NoMaster" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<script language="javascript" type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" ></script>
|
||||
<script language="javascript" type="text/javascript" src="/Scripts/jquery.leanModal.min.js" ></script>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title></title>
|
||||
<style type="text/css">
|
||||
|
||||
|
||||
#lean_overlay {
|
||||
position: fixed;
|
||||
z-index:100;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
height:100%;
|
||||
width:100%;
|
||||
background: #000;
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
<script type="text/javascript" language="javascript">
|
||||
|
||||
$(function () {
|
||||
$("#go").leanModal();
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<div>
|
||||
<a id="go" href="#overlay">Test!</a>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
<div id="overlay" style="opacity:0;display:none">Samuel Jackson Lorem Ipsum</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
public partial class Tests_LeanModal_NoMaster : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="LeanModal-Master.master" AutoEventWireup="true" CodeFile="LeanModal.aspx.cs" Inherits="Tests_LeanModal" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderHead" Runat="Server">
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
|
||||
#lean_overlay {
|
||||
position: fixed;
|
||||
z-index:100;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
height:100%;
|
||||
width:100%;
|
||||
background: #000;
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
</asp:Content>
|
||||
|
||||
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderMain" Runat="Server">
|
||||
|
||||
<a id="go" rel="leanModal" href="#overlay">Test!</a>
|
||||
|
||||
<div id="overlay" style="opacity:0;display:none">Samuel Jackson Lorem Ipsum</div>
|
||||
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolderSide" Runat="Server">
|
||||
</asp:Content>
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
public partial class Tests_LeanModal : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user