fix opening photo via https(nead to check on prodauction)

remotes/origin/1203
nkotiukadmin 10 years ago
parent df4d0f1f5d
commit 4fa3990cf5
  1. 4
      templates/client/includes/exposition/photo.html
  2. 2
      templates/client/static_client/js/_modules/page.place.photo.js

@ -61,7 +61,11 @@
{% include 'client/popups/photo.html' %}
{% endblock %}
{% block scripts %}
{% comment %}
<script src="{% static 'client/js_min/_modules/page.place.photo.min.js' %}"></script>
{% endcomment %}
<script src="{% static 'client/js/_modules/page.place.photo.js' %}"></script>
<script>
//js module initialization

@ -21,7 +21,7 @@ if (EXPO.placePhoto){
// object properties
var self = this;
this.currentId = undefined;
this.ajaxUrl = ajaxUrl;
this.ajaxUrl = location.protocol+'//'+location.hostname+(location.port ? ':'+location.port: '') + ajaxUrl;
//modal Window options
this.opt = {
gContainerId:containerId,

Loading…
Cancel
Save