Skip to content

Commit

Permalink
refs #1725 : added - close function to modal window.
Browse files Browse the repository at this point in the history
 -
  • Loading branch information
inureyes committed Jan 18, 2015
1 parent 0164b33 commit c8d40e9
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion resources/script/common2.js
Original file line number Diff line number Diff line change
Expand Up @@ -1256,11 +1256,19 @@ function openCenteredDialog(url, dialogId, width, height) {
positionStyle: 'fixed',
loadUrl:url,
transition:'fadeIn',
escClose:false,
speed:350,
modal:true,
modalColor:'#000',
opacity:0.7,
escClose:false,
modalClose:false,
loadCallback: function() {
$('#tcDialog iframe').contents().find('#commentSubmit').on('click', function(e) {
});
jQuery('#tcDialog iframe').contents().find('#closes').on('click', function(e) {
alert("clicked");
tcDialog.close();
});
}
});
tcDialogFrame = $('#tcDialog iframe');
Expand All @@ -1270,6 +1278,12 @@ function openCenteredDialog(url, dialogId, width, height) {
tcDialog.reposition();
}

function closeDialog() {
var scope = (window.location !== window.parent.location ? window.parent : window);
scope.tcDialog.close();
return false;
}

function resizeDialog(width, height, cumulative) {
var $ = jQuery;
var scope = (window.location !== window.parent.location ? window.parent : window);
Expand Down

0 comments on commit c8d40e9

Please sign in to comment.