[Bps-public-commit] RT-Extension-FeaturedTickets branch, master, updated. 99cb21c7024161bd69f3fd9825f8c002123a076e
Craig Kaiser
craig at bestpractical.com
Mon Apr 2 08:25:47 EDT 2018
The branch, master has been updated
via 99cb21c7024161bd69f3fd9825f8c002123a076e (commit)
via 3e9dd448c76320ee0c2feae062c67f31da49f926 (commit)
from 091e45d625ee43860aa66145ef7a168a9de44f19 (commit)
Summary of changes:
html/NoAuth/Featured/index.html | 4 ++--
static/css/featured-tickets.css | 13 +++++++++++++
static/js/featured-tickets.js | 11 +++++++----
3 files changed, 22 insertions(+), 6 deletions(-)
- Log -----------------------------------------------------------------
commit 3e9dd448c76320ee0c2feae062c67f31da49f926
Author: craig Kaiser <craig at bestpractical.com>
Date: Mon Apr 2 08:21:53 2018 -0400
Update submit button and funded sash
diff --git a/html/NoAuth/Featured/index.html b/html/NoAuth/Featured/index.html
index eb13369..38cf553 100644
--- a/html/NoAuth/Featured/index.html
+++ b/html/NoAuth/Featured/index.html
@@ -65,7 +65,7 @@
<input id="featured-tickets-amount" placeholder="Contribution Amount">
</div>
<input id="featured-tickets-ticket-id" type="hidden">
- <button type="submit" class="featured-tickets-button-choose pure-button">Submit</button>
+ <button type="submit" class="featured-tickets-button-choose pure-button">Close</button>
</fieldset>
</form>
</div>
@@ -79,7 +79,7 @@
<div class="pricing-table-header">
<h2><% $ticket->Subject ? $ticket->Subject : 'Ticket: ' . $ticket->Id %></h2>
</div>
-% if ( $ticket->FirstCustomFieldValue('Funded') ) {
+% if ( $ticket->FirstCustomFieldValue('Funded') eq 'Funded' ) {
<div class='ribbon-wrapper'>
<div class='ribbon'>Funded!</div>
</div>
commit 99cb21c7024161bd69f3fd9825f8c002123a076e
Author: craig Kaiser <craig at bestpractical.com>
Date: Mon Apr 2 08:22:48 2018 -0400
Add alert message on sponsor sign up
diff --git a/static/css/featured-tickets.css b/static/css/featured-tickets.css
index 427cc78..6c0d3ff 100644
--- a/static/css/featured-tickets.css
+++ b/static/css/featured-tickets.css
@@ -369,4 +369,17 @@
-moz-box-shadow: 0px 0px 3px rgba(51, 30, 170, 0.3);
box-shadow: 0px 0px 3px rgba(51, 30, 170, 0.3);
}
+
+ .featured-tickets-flash {
+ background: #006699;
+ text-align: center;
+ width: 30%;
+ position: absolute;
+ color:white;
+ border-radius:10px;
+ font-family:Tahoma,Geneva,Arial,sans-serif;font-size:11px;
+ padding:10px 10px 10px 10px;
+ margin:10px;
+ font-size: medium;
+ }
}
diff --git a/static/js/featured-tickets.js b/static/js/featured-tickets.js
index 0197e43..3a8edf4 100644
--- a/static/js/featured-tickets.js
+++ b/static/js/featured-tickets.js
@@ -14,6 +14,10 @@ function NewSponsor() {
data: data,
success: function( data ) {
console.log('AJAX call to NewSponsor created new sponsor ticket');
+ jQuery('body').prepend('<div class="featured-tickets-flash" id="flash"></div>');
+ jQuery('#flash').html('Thanks for your pledge of support! You\'ll receive an email soon with more details.');
+ jQuery('#flash').slideDown('slow');
+ jQuery('#flash').click(function () { jQuery('#flash').toggle('highlight') });
},
error: function () {
console.log('An error occured with NewSponsor create');
@@ -46,21 +50,20 @@ function detailsClicked( args ) {
var FeaturedTicketsPage = document.getElementById('featured-tickets-body');
var FeaturedTicketsModal = document.getElementById('featured-tickets-modal-modal');
-
+ var FeaturedTicketSpan = document.getElementById('featured-tickets-modal-close');
FeaturedTicketsModal.style.display = "block";
FeaturedTicketsPage.style.overflow = 'hidden';
FeaturedTicketSpan.onclick = function() {
- modal.style.display = "none";
+ FeaturedTicketsModal.style.display = "none";
FeaturedTicketsPage.style.overflow = 'auto';
}
-
// When the user clicks anywhere outside of the modal, close it
window.onclick = function(event) {
if (event.target == FeaturedTicketsModal) {
- modal.style.display = "none";
+ FeaturedTicketsModal.style.display = "none";
FeaturedTicketsPage.style.overflow = 'auto';
}
}
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list