function loadCreator (collectionId) {
  var pageType, releaseDate;

  getCollection(collectionId,
    success = function (response) {
      if (!response.publishDate) {
        releaseDate = null;
      } else {
        releaseDate = response.publishDate;
      }
    },
    error = function (response) {
      handleApiError(response);
    }
  );

  $('select').off().change(function () {
    pageType = $(this).val();
    //var parentUrl = localStorage.getItem("pageurl");
    var parentUrl = Florence.globalVars.pagePath;

    if (pageType === 'bulletin' || pageType === 'article') {
      $('.edition').empty();
      loadT4Creator(collectionId, releaseDate, pageType, parentUrl);
    }

    else if (pageType.match(/compendium_.+/)) {
      $('.edition').empty();
      loadT6Creator(collectionId, releaseDate, pageType, parentUrl);
    }

    else if (pageType.match(/static_.+/)) {
      $('.edition').empty();
      loadT7Creator(collectionId, releaseDate, pageType, parentUrl);
    }

    else if (pageType === 'reference_tables' || pageType === 'dataset') {
      $('.edition').empty();
      loadT8Creator(collectionId, releaseDate, pageType, parentUrl);
    }
    else if (pageType === 'release') {
      $('.edition').empty();
      loadT16Creator(collectionId, releaseDate, pageType, parentUrl);
    }
  });
}


@@ -517,16 +517,43 @@
 agePath;
+%0A    $('.edition').empty();
 %0A%0A    if
@@ -611,37 +611,8 @@
 ) %7B%0A
-      $('.edition').empty();%0A
     
@@ -674,33 +674,32 @@
 rentUrl);%0A    %7D%0A
-%0A
     else if (pag
@@ -734,37 +734,8 @@
 ) %7B%0A
-      $('.edition').empty();%0A
     
@@ -797,33 +797,32 @@
 rentUrl);%0A    %7D%0A
-%0A
     else if (pag
@@ -853,37 +853,8 @@
 ) %7B%0A
-      $('.edition').empty();%0A
     
@@ -924,17 +924,16 @@
 ;%0A    %7D%0A
-%0A
     else
@@ -1002,37 +1002,8 @@
 ) %7B%0A
-      $('.edition').empty();%0A
     
@@ -1065,32 +1065,32 @@
 rentUrl);%0A    %7D%0A
+
     else if (pag
@@ -1116,37 +1116,8 @@
 ) %7B%0A
-      $('.edition').empty();%0A
     

Solve bug when creating new pages