Skip to content

Commit

Permalink
fixes issue #2754 and #2742
Browse files Browse the repository at this point in the history
  • Loading branch information
FinalAngel committed Feb 27, 2014
1 parent 2622ed9 commit ce5ab46
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cms/static/cms/js/plugins/cms.modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,6 @@ $(document).ready(function () {
'top': modalTop + mvY
});
});

console.log($(window).scrollTop());
},

_endResize: function () {
Expand Down Expand Up @@ -509,6 +507,9 @@ $(document).ready(function () {
// after iframe is loaded append css
contents.find('head').append($('<link rel="stylesheet" type="text/css" href="' + that.config.urls.static + that.options.urls.css_modal + '" />'));

// set modal buttons
that._setButtons($(this));

// when an error occurs, reset the saved status so the form can be checked and validated again
if(iframe.contents().find('.errornote').length || iframe.contents().find('.errorlist').length) {
that.saved = false;
Expand Down

0 comments on commit ce5ab46

Please sign in to comment.