Skip to content

Commit

Permalink
Merge pull request #129 from AcclaroInc/bug/disable-default-draft-pub…
Browse files Browse the repository at this point in the history
…lishing

Disable the Publish Changes button within Entry detail screen
  • Loading branch information
sidedwards authored Jan 14, 2021
2 parents ca5587b + ba01dab commit 4f60f12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/assetbundles/src/js/ApplyTranslations.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Craft.Translations.ApplyTranslations = {
init: function(draftId, file) {
// Disable default Craft updating
window.draftEditor.settings.canUpdateSource = false;
$("#main-form input[type='submit']").disable();
$("#main-form input[type='submit']").attr('disabled', true);
$("#publish-changes-btn-container :input[type='button']").disable();
$("#publish-changes-btn-container :input[type='button']").attr('disabled', true);

// Create the Apply Translations button
var $applyTranslationsContainer = document.createElement('div');
Expand Down Expand Up @@ -68,4 +68,4 @@ Craft.Translations.ApplyTranslations = {
},
};

})(jQuery);
})(jQuery);

0 comments on commit 4f60f12

Please sign in to comment.