Skip to content
Snippets Groups Projects
Commit a0cf7a4a authored by Jared Hancock's avatar Jared Hancock
Browse files

Fix positioning of loading dialog overlay

parent f837124e
No related branches found
No related tags found
No related merge requests found
......@@ -272,7 +272,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
<div style="display:none;" class="dialog draggable" id="field-config">
<div id="popup-loading">
<h1><i class="icon-spinner icon-spin icon-large pull-left"></i>
<h1><i class="icon-spinner icon-spin icon-large"></i>
<?php echo __('Loading ...');?></h1>
</div>
<div class="body"></div>
......@@ -280,10 +280,14 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
<script type="text/javascript">
$(function() {
$('#popup-loading').hide().ajaxStart( function() {
$(this).show(); // show Loading Div
} ).ajaxStop ( function(){
$(this).hide(); // hide loading div
var $this = $('#popup-loading').hide();
$(document).ajaxStart( function(event) {
console.log(1,event);
var $h1 = $this.find('h1');
$this.show();
$h1.css({'margin-top':$this.height()/3-$h1.height()/3}); // show Loading Div
}).ajaxStop ( function(){
$this.hide(); // hide loading div
});
});
$('form.manage-form').on('submit.inline', function(e) {
......
......@@ -268,17 +268,22 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
<div style="display:none;" class="dialog draggable" id="field-config">
<div id="popup-loading">
<h1><i class="icon-spinner icon-spin icon-large pull-left"></i>
<h1><i class="icon-spinner icon-spin icon-large"></i>
<?php echo __('Loading ...');?></h1>
</div>
<div class="body"></div>
</div>
<script type="text/javascript">
$(function() {
$('#popup-loading').hide().ajaxStart( function() {
$(this).show(); // show Loading Div
} ).ajaxStop ( function(){
$(this).hide(); // hide loading div
var $this = $('#popup-loading').hide();
$(document).ajaxStart( function(event) {
console.log(1,event);
var $h1 = $this.find('h1');
$this.show();
$h1.css({'margin-top':$this.height()/3-$h1.height()/3}); // show Loading Div
}).ajaxStop ( function(){
$this.hide(); // hide loading div
});
});
</script>
......@@ -1336,9 +1336,21 @@ time {
box-shadow: 0 5px 60px #001;
border-radius: 5px;
max-height: 72%;
min-height: 50px;
overflow-y: auto;
}
.dialog .popup-loading {
position:absolute;
text-align:center;
background:rgba(255,255,255,0.8);
top:0;
bottom:0;
left:0;
right:0;
z-index:1;
}
.redactor_editor {
font-size: 11pt;
}
......
......@@ -245,7 +245,7 @@ class i18n_Compiler extends Module {
#'Approved' =>
'Id' => 'lang:' . $lang,
'Last-Revision' => $po_header['PO-Revision-Date'],
'Version' => strtotime($po_header['PO-Revision-Date']) / 10000,
'Version' => (int)(strtotime($po_header['PO-Revision-Date']) / 10000),
);
$phar->addFromString(
'MANIFEST.php',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment