只读模式
group, 分享
评论更多问题
博客标签总是存在一个
This commit is contained in:
lealife committed 2015-06-15 18:01:48 +08:00
1 parent 7e458bb433
commit 6987a38820
1453 files changed
+114558 -91533

No files matched your search

+9 -5
View File
@@ -15,8 +15,9 @@
* @class tinymce.ui.Throbber
*/
define("tinymce/ui/Throbber", [
"tinymce/ui/DomUtils"
], function(DomUtils) {
"tinymce/ui/DomUtils",
"tinymce/ui/Control"
], function(DomUtils, Control) {
"use strict";
/**
@@ -24,9 +25,10 @@ define("tinymce/ui/Throbber", [
*
* @constructor
* @param {Element} elm DOM Html element to display throbber in.
* @param {Boolean} inline Optional true/false state if the throbber should be appended to end of element for infinite scroll.
*/
return function(elm) {
var self = this, state;
return function(elm, inline) {
var self = this, state, classPrefix = Control.classPrefix;
/**
* Shows the throbber.
@@ -42,7 +44,9 @@ define("tinymce/ui/Throbber", [
window.setTimeout(function() {
if (state) {
elm.appendChild(DomUtils.createFragment('<div class="mce-throbber"></div>'));
elm.appendChild(DomUtils.createFragment(
'<div class="' + classPrefix + 'throbber' + (inline ? ' ' + classPrefix + 'throbber-inline' : '') + '"></div>'
));
}
}, time || 0);