Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Aug 21, 2019
1 parent ec94356 commit c1c7d4c
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/admin/assets/src/js/classes/Window.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,9 @@
var self = this;

this.trigger('beforeOpen');
//строка параметров, собираем из массива
var paramsSting = "";
if (this.getOpts()) {
_.each(this.getOpts(), function (value, key) {
if (paramsSting) {
paramsSting = paramsSting + ',';
}
paramsSting = paramsSting + String(key) + "=" + String(value);
});
}

var name = this.getName();
/*var currentHref = window.location.href;*/

this.onDomReady(function () {
$.fancybox.open({
Expand All @@ -46,6 +37,11 @@

'afterClose': function () {
self.trigger('close');
/*window.history.replaceState(null, 'title', currentHref);*/
},
'afterShow': function () {
/*window.history.replaceState(null, 'title', self._src);*/

},
iframe: {
tpl: '<iframe id="fancybox-frame{rnd}" name="' + name + '" class="fancybox-iframe" allowfullscreen allow="autoplay; fullscreen" src=""></iframe>',
Expand Down

0 comments on commit c1c7d4c

Please sign in to comment.