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

14
public/tinymce/classes/ui/Throbber.js Normal file → Executable file
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);