<script>
var jsInfo = {
  'nuordc': "{{ common['isOrder'] ? common['order_info'].nuordc : '' }}",
  'cdcata': "{{ common['isOrder'] ? common['order_info'].cdcata : '' }}",
  'isOrder': {{ common['isOrder'] ? 'true' : 'false' }},
  'closeQtyModal': {{ common['closeQtyModal'] ? 'true' : 'false' }},
  'insertUnsuccessText': "{{ mt._('quantity.insert.unsuccess') }}",
  'regqtmWarningText': "{{ mt._('quantity.warning.regqtm.bis') }}",
  'galleryType': {{ galleryType }},
  'getProductUrl': '{{ galleryType == 1 ? url("catalog/getGalleryModelModal") : url("catalog/getGalleryArticleModal") }}',
  'getInsertQuantityForGalleryProductUrl': '{{ galleryType == 1 ? url("catalog/getInsertQuantityForGalleryModel") : url("catalog/getInsertQuantityForGalleryArticle") }}',
  'saveOrderRowUrl': '{{ url("model/ajax/saveOrderRow") }}',
};
</script>
{{ javascript_include("js/custom/catalog_gallery.js") }}

<script>
{{ insertQuantityTemplate('.modal-show-product-quantity .modal-body', router.getControllerName(), common['breakregqta'], common['modelDetailStyle']) }}
</script>
