mirror of
https://github.com/koalyptus/TableFilter.git
synced 2026-03-16 23:55:46 +01:00
Added requiresjs build config in grunt file
This commit is contained in:
parent
b5eee075ee
commit
fc41c6fb33
26 changed files with 262 additions and 3093 deletions
|
|
@ -1,6 +1,5 @@
|
|||
define(['../dom', '../types'], function (dom, types) {
|
||||
'use strict';
|
||||
console.log(arguments);
|
||||
|
||||
var global = window;
|
||||
|
||||
|
|
@ -34,13 +33,13 @@ console.log(arguments);
|
|||
|
||||
var targetEl = !tf.loaderTgtId ?
|
||||
(tf.gridLayout ? tf.tblCont : tf.tbl.parentNode) :
|
||||
TF.id(tf.loaderTgtId);
|
||||
dom.id(tf.loaderTgtId);
|
||||
if(!tf.loaderTgtId){
|
||||
targetEl.insertBefore(containerDiv, tf.tbl);
|
||||
} else {
|
||||
targetEl.appendChild(containerDiv);
|
||||
}
|
||||
tf.loaderDiv = TF.id(tf.prfxLoader+tf.id);
|
||||
tf.loaderDiv = dom.id(tf.prfxLoader+tf.id);
|
||||
if(!tf.loaderHtml){
|
||||
tf.loaderDiv.appendChild(dom.text(tf.loaderText));
|
||||
} else {
|
||||
|
|
@ -78,7 +77,7 @@ console.log(arguments);
|
|||
}
|
||||
var targetEl = !this.tf.loaderTgtId ?
|
||||
(this.tf.gridLayout ? this.tf.tblCont : this.tf.tbl.parentNode) :
|
||||
TF.id(this.tf.loaderTgtId);
|
||||
dom.id(this.tf.loaderTgtId);
|
||||
targetEl.removeChild(this.tf.loaderDiv);
|
||||
this.tf.loaderDiv = null;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue