Skip to content
This repository has been archived by the owner on Oct 4, 2022. It is now read-only.

Commit

Permalink
Uses the container in the config for the loading dialog of the plugins.
Browse files Browse the repository at this point in the history
Also prefixed the classNames with YoastSEO
  • Loading branch information
terw-dan committed Oct 5, 2015
1 parent 1d0df24 commit 3fa27b8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
10 changes: 5 additions & 5 deletions dist/yoast-seo.js
Original file line number Diff line number Diff line change
Expand Up @@ -1326,17 +1326,17 @@ YoastSEO.App.prototype.noKeywordQueue = function() {
*/
YoastSEO.App.prototype.showLoadingDialog = function() {
var dialogDiv = document.createElement( "div" );
dialogDiv.className = "wpseo_msg";
dialogDiv.id = "wpseo-plugin-loading";
document.getElementById( "wpseo_meta" ).appendChild( dialogDiv );
dialogDiv.className = "YoastSEO_msg";
dialogDiv.id = "YoastSEO-plugin-loading";
document.getElementById( this.config.targets.output ).appendChild( dialogDiv );
};

/**
* Updates the loading plugins. Uses the plugins as arguments to show which plugins are loading
* @param plugins
*/
YoastSEO.App.prototype.updateLoadingDialog = function( plugins ) {
var dialog = document.getElementById( "wpseo-plugin-loading" );
var dialog = document.getElementById( "YoastSEO-plugin-loading" );
dialog.textContent = "";
for ( var plugin in this.pluggable.plugins ) {
dialog.innerHTML += plugin + plugins[ plugin ].status + "<br />";
Expand All @@ -1347,7 +1347,7 @@ YoastSEO.App.prototype.updateLoadingDialog = function( plugins ) {
* removes the pluging load dialog.
*/
YoastSEO.App.prototype.removeLoadingDialog = function() {
document.getElementById( "wpseo_meta" ).removeChild( document.getElementById( "wpseo-plugin-loading" ) );
document.getElementById( this.config.targets.output ).removeChild( document.getElementById( "YoastSEO-plugin-loading" ) );
};

/**
Expand Down
Loading

0 comments on commit 3fa27b8

Please sign in to comment.