Commit ed06700a by Chris Dodge

add space to table header

parent b7e585c1
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
<th class="c_code">${_("Code")}</th> <th class="c_code">${_("Code")}</th>
<th class="c_dsc">${_("Description")}</th> <th class="c_dsc">${_("Description")}</th>
<th class="c_course_id">${_("Course_id")}</th> <th class="c_course_id">${_("Course_id")}</th>
<th class="c_discount">${_("Discount(%)")}</th> <th class="c_discount">${_("Discount (%)")}</th>
<th class="c_count">${_("Count")}</th> <th class="c_count">${_("Count")}</th>
<th class="c_action">${_("Actions")}</th> <th class="c_action">${_("Actions")}</th>
</tr> </tr>
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
</div> </div>
<script> <script>
$(function () { $(function () {
var icons = { var icons = {
header: "ui-icon-circle-arrow-e", header: "ui-icon-circle-arrow-e",
activeHeader: "ui-icon-circle-arrow-s" activeHeader: "ui-icon-circle-arrow-s"
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
active:isNaN(parseInt($.cookie('saved_index'))) ? 0 : parseInt($.cookie('saved_index')), active:isNaN(parseInt($.cookie('saved_index'))) ? 0 : parseInt($.cookie('saved_index')),
collapsible: true collapsible: true
}); });
$('a[rel*=leanModal]').leanModal(); $('a[rel*=leanModal]').leanModal();
$.each($("a.edit-right"), function () { $.each($("a.edit-right"), function () {
if ($(this).parent().parent('tr').hasClass('inactive_coupon')) { if ($(this).parent().parent('tr').hasClass('inactive_coupon')) {
...@@ -211,7 +211,7 @@ ...@@ -211,7 +211,7 @@
// Get the Code and Discount value and trim it // Get the Code and Discount value and trim it
var code = $.trim($('#edit_coupon_code').val()); var code = $.trim($('#edit_coupon_code').val());
var coupon_discount = $.trim($('#edit_coupon_discount').val()); var coupon_discount = $.trim($('#edit_coupon_discount').val());
// Check if empty of not // Check if empty of not
if (code === '') { if (code === '') {
$('#edit_coupon_form #coupon_form_error').attr('style', 'display: block !important'); $('#edit_coupon_form #coupon_form_error').attr('style', 'display: block !important');
...@@ -249,7 +249,7 @@ ...@@ -249,7 +249,7 @@
// Get the Code and Discount value and trim it // Get the Code and Discount value and trim it
var course_price = $.trim($('#mode_price').val()); var course_price = $.trim($('#mode_price').val());
var currency = $.trim($('#course_mode_currency').val()); var currency = $.trim($('#course_mode_currency').val());
// Check if empty of not // Check if empty of not
if (course_price === '') { if (course_price === '') {
$('#set_price_form #course_form_error').attr('style', 'display: block !important'); $('#set_price_form #course_form_error').attr('style', 'display: block !important');
...@@ -275,7 +275,7 @@ ...@@ -275,7 +275,7 @@
// Get the Code and Discount value and trim it // Get the Code and Discount value and trim it
var code = $.trim($('#coupon_code').val()); var code = $.trim($('#coupon_code').val());
var coupon_discount = $.trim($('#coupon_discount').val()); var coupon_discount = $.trim($('#coupon_discount').val());
// Check if empty of not // Check if empty of not
if (code === '') { if (code === '') {
$("#add_coupon_button").removeAttr('disabled'); $("#add_coupon_button").removeAttr('disabled');
...@@ -302,7 +302,7 @@ ...@@ -302,7 +302,7 @@
return false; return false;
} }
}); });
$('#set_price_form').on('ajax:complete', function (event, xhr) { $('#set_price_form').on('ajax:complete', function (event, xhr) {
if (xhr.status == 200) { if (xhr.status == 200) {
location.reload(true); location.reload(true);
...@@ -312,7 +312,7 @@ ...@@ -312,7 +312,7 @@
$('#set_price_form #course_form_error').text(xhr.responseText); $('#set_price_form #course_form_error').text(xhr.responseText);
} }
}); });
$('#add_coupon_form').on('ajax:complete', function (event, xhr) { $('#add_coupon_form').on('ajax:complete', function (event, xhr) {
if (xhr.status == 200) { if (xhr.status == 200) {
location.reload(true); location.reload(true);
...@@ -322,7 +322,7 @@ ...@@ -322,7 +322,7 @@
$('#add_coupon_form #coupon_form_error').text(xhr.responseText); $('#add_coupon_form #coupon_form_error').text(xhr.responseText);
} }
}); });
$('#edit_coupon_form').on('ajax:complete', function (event, xhr) { $('#edit_coupon_form').on('ajax:complete', function (event, xhr) {
if (xhr.status == 200) { if (xhr.status == 200) {
location.reload(true); location.reload(true);
...@@ -340,7 +340,7 @@ ...@@ -340,7 +340,7 @@
reset_input_fields(); reset_input_fields();
e.preventDefault(); e.preventDefault();
}); });
var onModalClose = function () { var onModalClose = function () {
$("#add-coupon-modal").attr("aria-hidden", "true"); $("#add-coupon-modal").attr("aria-hidden", "true");
$(".remove_coupon").focus(); $(".remove_coupon").focus();
...@@ -352,7 +352,7 @@ ...@@ -352,7 +352,7 @@
$("#update_coupon_button").removeAttr('disabled'); $("#update_coupon_button").removeAttr('disabled');
reset_input_fields(); reset_input_fields();
}; };
var cycle_modal_tab = function (from_element_name, to_element_name) { var cycle_modal_tab = function (from_element_name, to_element_name) {
$(from_element_name).on('keydown', function (e) { $(from_element_name).on('keydown', function (e) {
var keyCode = e.keyCode || e.which; var keyCode = e.keyCode || e.which;
...@@ -363,12 +363,12 @@ ...@@ -363,12 +363,12 @@
} }
}); });
}; };
$("#add-coupon-modal .close-modal").click(onModalClose); $("#add-coupon-modal .close-modal").click(onModalClose);
$("#edit-coupon-modal .close-modal").click(onModalClose); $("#edit-coupon-modal .close-modal").click(onModalClose);
$("#set-course-mode-price-modal .close-modal").click(reset_input_fields); $("#set-course-mode-price-modal .close-modal").click(reset_input_fields);
// Hitting the ESC key will exit the modal // Hitting the ESC key will exit the modal
$("#add-coupon-modal, #edit-coupon-modal, #set-course-mode-price-modal").on("keydown", function (e) { $("#add-coupon-modal, #edit-coupon-modal, #set-course-mode-price-modal").on("keydown", function (e) {
var keyCode = e.keyCode || e.which; var keyCode = e.keyCode || e.which;
...@@ -391,6 +391,6 @@ ...@@ -391,6 +391,6 @@
$('input#coupon_code').val(''); $('input#coupon_code').val('');
$('input#coupon_discount').val(''); $('input#coupon_discount').val('');
$('textarea#coupon_description').val(''); $('textarea#coupon_description').val('');
} }
</script> </script>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment