Skip to content

Commit

Permalink
API CHANGE Removed unused showIndicator() and hideIndicator() javascr…
Browse files Browse the repository at this point in the history
…ipt methods

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92640 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information
chillu committed Nov 21, 2009
1 parent f76fefa commit 8d637e7
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions javascript/LeftAndMain.js
Expand Up @@ -765,35 +765,6 @@ function contextmenu_onclick() {
return false;
}

/**
* Shows an ajax loading indicator.
*
* @param id String Identifier for the newly created image
* @param container ID/DOM Element
* @param imgSrc String (optional)
* @param insertionType Object (optional) Prototype-style insertion-classes, defaults to Insertion.Bottom
* @param displayType String (optional) "inline" or "block"
*/
function showIndicator(id, container, imgSrc, insertionType, displayType) {
if(!id || !$(container)) return false;
if(!imgSrc) imgSrc = "cms/images/network-save.gif";
if(!displayType) displayType = "inline";
if(!insertionType) insertionType = Insertion.Bottom;

if(!$(id)) {
var html = '<img src="' + imgSrc + '" class="indicator ' + displayType + '" id="' + id + '" style="display: none" />';
new insertionType(container, html);
}

Effect.Appear(id);
}

function hideIndicator(id) {
Effect.Fade(id, {duration: 0.3});
}



/**
* Find and enable TinyMCE on all htmleditor fields
* Pulled in from old tinymce.template.js
Expand Down

0 comments on commit 8d637e7

Please sign in to comment.