Commit 0d1d9c8f authored by Tibor Katelbach's avatar Tibor Katelbach
Browse files

no more page reload, only hash reload

parent 2ad45130
......@@ -137,10 +137,9 @@ $(document).ready(function() {
else {
dataHelper.path2Value( tplCtx, function(params) {
$("#ajax-modal").html("<div class='text-center'><i class='fa fa-spin fa-spinner'></i></div>");//$("#ajax-modal").modal('hide');
location.reload();
urlCtrl.loadByHash(location.hash);
} );
}
}
}
};
......@@ -201,7 +200,7 @@ $(document).ready(function() {
else {
dataHelper.path2Value( tplCtx, function(params) {
$("#ajax-modal").html("<div class='text-center'><i class='fa fa-spin fa-spinner'></i></div>");
location.reload();
urlCtrl.loadByHash(location.hash);
} );
}
......
......@@ -146,7 +146,7 @@ $(document).ready(function() {
dataHelper.path2Value( tplCtx, function(params) {
//$("#ajax-modal").modal('hide');
$("#ajax-modal").html("<div class='text-center'><i class='fa fa-spin fa-spinner'></i></div>");
location.reload();
urlCtrl.loadByHash(location.hash);
} );
}
......@@ -185,7 +185,7 @@ $(document).ready(function() {
dataHelper.path2Value( tplCtx, function(params) {
//$("#ajax-modal").modal('hide');
$("#ajax-modal").html("<div class='text-center'><i class='fa fa-spin fa-spinner'></i></div>");
location.reload();
urlCtrl.loadByHash(location.hash);
} );
}
......
......@@ -318,7 +318,7 @@ $(document).ready(function() {
else {
dataHelper.path2Value( tplCtx, function(params) {
$("#ajax-modal").html("<div class='text-center'><i class='fa fa-spin fa-spinner'></i></div>");//$("#ajax-modal").modal('hide');
location.reload();
urlCtrl.loadByHash(location.hash);
} );
}
......@@ -363,7 +363,7 @@ $(document).ready(function() {
else {
dataHelper.path2Value( tplCtx, function(params) {
$("#ajax-modal").html("<div class='text-center'><i class='fa fa-spin fa-spinner'></i></div>");
location.reload();
urlCtrl.loadByHash(location.hash);
} );
}
......@@ -496,7 +496,7 @@ function closePrioModal(){
}
function closePrioModalRel(){
closePrioModal();
location.reload();
urlCtrl.loadByHash(location.hash);
}
</script>
<?php } else {
......
......@@ -186,7 +186,7 @@ $(document).ready(function() {
else {
dataHelper.path2Value( tplCtx, function(params) {
$("#ajax-modal").html("<div class='text-center'><i class='fa fa-spin fa-spinner'></i></div>");//$("#ajax-modal").modal('hide');
location.reload();
urlCtrl.loadByHash(location.hash);
} );
}
......@@ -223,7 +223,7 @@ $(document).ready(function() {
else {
dataHelper.path2Value( tplCtx, function(params) {
$("#ajax-modal").html("<div class='text-center'><i class='fa fa-spin fa-spinner'></i></div>");
location.reload();
urlCtrl.loadByHash(location.hash);
} );
}
......
......@@ -154,7 +154,7 @@ $(document).ready(function() {
else {
dataHelper.path2Value ( tplCtx, function(params) {
$("#ajax-modal").modal('hide');
location.reload();
urlCtrl.loadByHash(location.hash);
} );
}
}
......@@ -205,7 +205,7 @@ $(document).ready(function() {
else {
dataHelper.path2Value( tplCtx, function(params) {
$("#ajax-modal").modal('hide');
location.reload();
urlCtrl.loadByHash(location.hash);
} );
}
......
......@@ -137,7 +137,7 @@ $(document).ready(function() {
else {
dataHelper.path2Value( tplCtx, function(params) {
$("#ajax-modal").modal('hide');
location.reload();
urlCtrl.loadByHash(location.hash);
} );
}
......
......@@ -235,7 +235,7 @@ $(document).ready(function() {
else {
dataHelper.path2Value( tplCtx, function(params) {
$("#ajax-modal").html("<div class='text-center'><i class='fa fa-spin fa-spinner'></i></div>");//$("#ajax-modal").modal('hide');
location.reload();
urlCtrl.loadByHash(location.hash);
} );
}
......@@ -282,7 +282,7 @@ $(document).ready(function() {
else {
dataHelper.path2Value( tplCtx, function(params) {
$("#ajax-modal").html("<div class='text-center'><i class='fa fa-spin fa-spinner'></i></div>");
location.reload();
urlCtrl.loadByHash(location.hash);
} );
}
......
......@@ -433,7 +433,7 @@ $(document).ready(function() {
else {
dataHelper.path2Value( tplCtx, function(params) {
$("#ajax-modal").html("<div class='text-center'><i class='fa fa-spin fa-spinner'></i></div>");//$("#ajax-modal").modal('hide');
location.reload();
urlCtrl.loadByHash(location.hash);
} );
}
......@@ -498,7 +498,7 @@ $(document).ready(function() {
else {
dataHelper.path2Value( tplCtx, function(params) {
$("#ajax-modal").html("<div class='text-center'><i class='fa fa-spin fa-spinner'></i></div>");
location.reload();
urlCtrl.loadByHash(location.hash);
} );
}
......@@ -627,7 +627,7 @@ $(document).ready(function() {
mylog.log("btnFinancer save",tplCtx);
dataHelper.path2Value( tplCtx, function(params) {
prioModal.modal('hide');
saveLinks(answerObj._id.$id,"financerAdded",userId,function(){location.reload();});
saveLinks(answerObj._id.$id,"financerAdded",userId,function(){urlCtrl.loadByHash(location.hash);});
} );
}
......
......@@ -145,7 +145,7 @@ $(document).ready(function() {
else {
dataHelper.path2Value( tplCtx, function(params) {
$("#ajax-modal").html("<div class='text-center'><i class='fa fa-spin fa-spinner'></i></div>");//$("#ajax-modal").modal('hide');
location.reload();
urlCtrl.loadByHash(location.hash);
} );
}
......@@ -184,7 +184,7 @@ $(document).ready(function() {
else {
dataHelper.path2Value( tplCtx, function(params) {
$("#ajax-modal").html("<div class='text-center'><i class='fa fa-spin fa-spinner'></i></div>");
location.reload();
urlCtrl.loadByHash(location.hash);
} );
}
......@@ -231,7 +231,7 @@ $(document).ready(function() {
dataHelper.path2Value( tplCtx, function(params) {
$("#ajax-modal").html("<div class='text-center'><i class='fa fa-spin fa-spinner'></i></div>");
location.reload();
urlCtrl.loadByHash(location.hash);
} );
}
}
......
......@@ -65,7 +65,7 @@ jQuery(document).ready(function() {
else {
dataHelper.path2Value( tplCtx, function(params) {
$("#ajax-modal").modal('hide');
location.reload();
urlCtrl.loadByHash(location.hash);
} );
}
......
......@@ -140,7 +140,7 @@ $(document).ready(function() {
else {
dataHelper.path2Value( tplCtx, function(params) {
$("#ajax-modal").html("<div class='text-center'><i class='fa fa-spin fa-spinner'></i></div>");
location.reload();
urlCtrl.loadByHash(location.hash);
} );
}
......@@ -184,7 +184,7 @@ $(document).ready(function() {
else {
dataHelper.path2Value( tplCtx, function(params) {
$("#ajax-modal").modal('hide');
location.reload();
urlCtrl.loadByHash(location.hash);
} );
}
......
......@@ -65,7 +65,7 @@ jQuery(document).ready(function() {
else {
dataHelper.path2Value( tplCtx, function(params) {
$("#ajax-modal").modal('hide');
location.reload();
urlCtrl.loadByHash(location.hash);
} );
}
......
......@@ -22,7 +22,7 @@ if( Form::canFormAccess( ['roles'=>["Financeur"] ]) )
<tbody class="directoryLines">
<tr>
<td colspan='2' ><43 style="color:<?php echo ($titleColor) ? $titleColor : "black"; ?>">Validation</h4>
<td colspan='2' ><h4 style="color:<?php echo ($titleColor) ? $titleColor : "black"; ?>">Validation</h4>
</td>
</tr>
<?php
......@@ -134,7 +134,7 @@ $(document).ready(function() {
else {
dataHelper.path2Value( tplCtx, function(params) {
$("#ajax-modal").html("<div class='text-center'><i class='fa fa-spin fa-spinner'></i></div>");
location.reload();
urlCtrl.loadByHash(location.hash);
} );
}
......@@ -202,10 +202,10 @@ $(document).ready(function() {
};
mylog.log("save step save",ctxTpl);
dataHelper.path2Value( ctxTpl, function(params) {
location.reload();
urlCtrl.loadByHash(location.hash);
} );
} else
location.reload();
urlCtrl.loadByHash(location.hash);
} );
......
......@@ -570,7 +570,7 @@ $(document).ready(function() {
else {
dataHelper.path2Value( tplCtx, function(params) {
$("#ajax-modal").html("<div class='text-center'><i class='fa fa-spin fa-spinner'></i></div>");//$("#ajax-modal").modal('hide');
location.reload();
urlCtrl.loadByHash(location.hash);
} );
}
......@@ -622,7 +622,7 @@ $(document).ready(function() {
else {
dataHelper.path2Value( tplCtx, function(params) {
$("#ajax-modal").html("<div class='text-center'><i class='fa fa-spin fa-spinner'></i></div>");
location.reload();
urlCtrl.loadByHash(location.hash);
} );
}
......@@ -1131,7 +1131,7 @@ function closePrioModal(){
}
function closePrioModalRel(){
closePrioModal();
location.reload();
urlCtrl.loadByHash(location.hash);
}
</script>
<?php } else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment