Skip to content

Commit d405751

Browse files
Merge branch 'dev' of github.com:Abdur-rahmaanJ/shopcube into dev
2 parents 9a50e15 + f680572 commit d405751

File tree

7 files changed

+9
-7
lines changed

7 files changed

+9
-7
lines changed

src/shopcube/app.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ def create_app(config_name, configs=None):
100100
def devstatic(boxormodule, filename):
101101
if app.config["DEBUG"]:
102102
module_static = os.path.join(modules_path, boxormodule, "static")
103-
return send_from_directory(module_static, filename=filename)
103+
return send_from_directory(
104+
os.path.normpath(module_static), filename=filename
105+
)
104106

105107
available_everywhere_entities = {}
106108

src/shopcube/modules/box__bizhelp/appointment/templates/appointment/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
var id = $(this).attr('name');
3939
var ask = confirm("Do you want to delete ?");
4040
if (ask == true) {
41-
window.location.replace("/appointment/delete/" + id, "_self");
41+
window.location.replace("/appointment/delete/" + $.find(id), "_self");
4242
return false;
4343
} else {
4444

src/shopcube/modules/box__ecommerce/shop/templates/shop/product.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
}
4141
</style>
4242
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
43-
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
43+
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js" integrity="sha512-uto9mlQzrs59VwILcLiRYeLKPPbS/bT71da/OEBYEwcdNUk8jYIy+D176RYoop1Da+f9mvkYrmj5MCLZWEtQuA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
4444
<script>
4545
$(function() {
4646
$("#slider-range").slider({

src/shopcube/modules/box__ecommerce/shop/templates/shop/shop.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</style>
1313
{% include get_active_front_theme()+'/sections/resources.html'%}
1414
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
15-
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
15+
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js" integrity="sha512-uto9mlQzrs59VwILcLiRYeLKPPbS/bT71da/OEBYEwcdNUk8jYIy+D176RYoop1Da+f9mvkYrmj5MCLZWEtQuA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
1616
<script>
1717

1818
$( function() {

src/shopcube/modules/box__ecommerce/shop/templates/shop/subcategory.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
</style>
3030
{% include get_active_front_theme()+'/sections/resources.html'%}
3131
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
32-
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
32+
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js" integrity="sha512-uto9mlQzrs59VwILcLiRYeLKPPbS/bT71da/OEBYEwcdNUk8jYIy+D176RYoop1Da+f9mvkYrmj5MCLZWEtQuA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
3333
<script>
3434
{% set min_max = get_min_max_subcateg(subcategory.name) %}
3535
$( function() {

src/shopcube/static/themes/front/ecommerceus/sections/drawer_head.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
$("[data-trigger]").on("click", function() {
77
var trigger_id = $(this).attr('data-trigger');
8-
$(trigger_id).toggleClass("show");
8+
$($.find(trigger_id)).toggleClass("show");
99
$('body').toggleClass("offcanvas-active");
1010
});
1111

src/shopcube/static/themes/front/ecommerceus/sections/resources.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
{%if active_page == 'index.html'%}
2525
<link href="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.19.1/css/mdb.min.css" rel="stylesheet">
26-
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.19.1/js/mdb.min.js"></script>
26+
<script src="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.19.1/js/mdb.min.js" integrity="sha512-Mug9KHKmroQFMLm93zGrjhibM2z2Obg9l6qFG2qKjXEXkMp/VDkI4uju9m4QKPjWSwQ6O2qzZEnJDEeCw0Blcw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
2727
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap">
2828
{%endif%}
2929
<meta name="viewport" content="width=device-width, initial-scale=1.0">

0 commit comments

Comments
 (0)