Commit 3fedf064 authored by Clément Damiens's avatar Clément Damiens
Browse files

finish openingHours

parent 9b2ec8e1
......@@ -2916,13 +2916,13 @@ var dyFObj = {
delete formData.hour;
if(typeof formData.minute != "undefined")
delete formData.minute;
formData.openingHours=openingHoursResult;
$.each(formData.openingHours, function(e,v){
if(v.allDays && typeof v.hours != "undefined")
$.each(openingHoursResult, function(e,v){
if(v.allDay && typeof v.hours != "undefined")
delete openingHoursResult[e]["hours"];
if(typeof v.disabled != "undefined")
formData.openingHours.splice(e,1);
delete openingHoursResult[e];
});
formData.openingHours=openingHoursResult;
}
// Add collections and genres of notragora in tags
if( typeof formData.collections != "undefined" && formData.collections != "" ){
......
......@@ -49,7 +49,7 @@ dynForm = {
$('.fine-uploader-manual-trigger').fineUploader('uploadStoredFiles');
else {
dyFObj.closeForm();
loadProducts();
//loadProducts();
//urlCtrl.loadByHash( (uploadObj.gotoUrl) ? uploadObj.gotoUrl : location.hash );
}
},
......
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