Commit 8b1b0dea authored by Tibor Katelbach's avatar Tibor Katelbach
Browse files

repair reload after create

parent 67a9e5ec
......@@ -48,10 +48,10 @@ dynForm = {
afterSave : function(){
if( $('.fine-uploader-manual-trigger').fineUploader('getUploads').length > 0 )
$('.fine-uploader-manual-trigger').fineUploader('uploadStoredFiles');
/*else {
else {
dyFObj.closeForm();
urlCtrl.loadByHash( location.hash );
}*/
}
},
canSubmitIf : function () {
if( $("#ajaxFormModal #section").val() && $("#ajaxFormModal #type").val() && $("#ajaxFormModal #subtype").val() )
......
......@@ -48,6 +48,10 @@ dynForm = {
afterSave : function(){
if( $('.fine-uploader-manual-trigger').fineUploader('getUploads').length > 0 )
$('.fine-uploader-manual-trigger').fineUploader('uploadStoredFiles');
else {
dyFObj.closeForm();
urlCtrl.loadByHash( '#page.type.events.id.'+uploadObj.id );
}
},
beforeSave : function(){
//alert("onBeforeSave");
......
......@@ -15,7 +15,7 @@ dynForm = {
$('.fine-uploader-manual-trigger').fineUploader('uploadStoredFiles');
else {
dyFObj.closeForm();
urlCtrl.loadByHash( '#page.type.'+uploadObj.type+'.id.'+uploadObj.id );
urlCtrl.loadByHash( '#page.type.organizations.id.'+uploadObj.id );
}
},
properties : {
......
......@@ -41,6 +41,10 @@ dynForm = {
afterSave : function(){
if( $('.fine-uploader-manual-trigger').fineUploader('getUploads').length > 0 )
$('.fine-uploader-manual-trigger').fineUploader('uploadStoredFiles');
else {
dyFObj.closeForm();
urlCtrl.loadByHash( '#page.type.places.id.'+uploadObj.id );
}
},
actions : {
clear : function() {
......
......@@ -34,6 +34,10 @@ dynForm = {
afterSave : function(){
if( $('.fine-uploader-manual-trigger').fineUploader('getUploads').length > 0 )
$('.fine-uploader-manual-trigger').fineUploader('uploadStoredFiles');
else {
dyFObj.closeForm();
urlCtrl.loadByHash( location.hash );
}
},
canSubmitIf : function () {
return ( $("#ajaxFormModal #type").val() ) ? true : false ;
......
......@@ -41,6 +41,10 @@ dynForm = {
afterSave : function(){
if( $('.fine-uploader-manual-trigger').fineUploader('getUploads').length > 0 )
$('.fine-uploader-manual-trigger').fineUploader('uploadStoredFiles');
else {
dyFObj.closeForm();
urlCtrl.loadByHash( location.hash );
}
},
actions : {
clear : function() {
......
......@@ -22,7 +22,19 @@
<br><br>
Au quotidien, Open Atlas fonctionne grâce à la présence permanente des développeurs, des commoners, et des acteurs sur le terrain, le meilleur moyen de les contacter est <a href="chat.lescommuns.org" target="_blank">ici</a> .
<br>Numéro siret : 513 381 830 00019
<br><br><br>
<span class="bold">
<br>1. We believe in an open exchange.
<br>2. We believe in the power of participation.
<br>3. We believe in rapid prototyping.
<br>4. We believe in meritocracy.
<br>5. We believe in community
</span>
<br><a href="http://www.framablog.org/index.php/post/2011/09/28/the-open-source-way" target="_blanck">the-open-source-way</a>
</div>
<div class="space20"></div>
<style type="text/css">
......
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