src/pyams_content/skin/resources/js/pyams_content.js
changeset 1004 ca57b160d863
parent 976 5d23f030767c
equal deleted inserted replaced
1003:cdc5d7aa9387 1004:ca57b160d863
   246 				}
   246 				}
   247 			}
   247 			}
   248 		},
   248 		},
   249 
   249 
   250 		/**
   250 		/**
       
   251 		 * Illustrations management
       
   252 		 */
       
   253 		illustration: {
       
   254 
       
   255 			addIllustration: function() {
       
   256 				var source = $(this);
       
   257 				var group = source.parents('.btn-group');
       
   258 				var legend = group.siblings('legend.switcher');
       
   259 				$('i.fa-plus', legend).click();
       
   260 				source.hide();
       
   261 				$('input[type="file"]', legend.siblings('.form-group:first')).click();
       
   262 			}
       
   263 		},
       
   264 
       
   265 		/**
   251 		 * Paragraphs management
   266 		 * Paragraphs management
   252 		 */
   267 		 */
   253 		paragraphs: {
   268 		paragraphs: {
   254 
   269 
   255 			/* Store and restore paragraphs state on reload */
   270 			/* Store and restore paragraphs state on reload */