mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
API CHANGE Removed unused showIndicator() and hideIndicator() javascript methods
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92640 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
f76fefa873
commit
8d637e77e5
@ -765,35 +765,6 @@ function contextmenu_onclick() {
|
|||||||
return false;
|
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
|
* Find and enable TinyMCE on all htmleditor fields
|
||||||
* Pulled in from old tinymce.template.js
|
* Pulled in from old tinymce.template.js
|
||||||
|
Loading…
Reference in New Issue
Block a user