diff options
Diffstat (limited to 'sdnr/wt/devicemanager/provider/src/test/resources/elasticsearch/plugins/head/src/app/ux/templates/templates.js')
-rw-r--r-- | sdnr/wt/devicemanager/provider/src/test/resources/elasticsearch/plugins/head/src/app/ux/templates/templates.js | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/sdnr/wt/devicemanager/provider/src/test/resources/elasticsearch/plugins/head/src/app/ux/templates/templates.js b/sdnr/wt/devicemanager/provider/src/test/resources/elasticsearch/plugins/head/src/app/ux/templates/templates.js deleted file mode 100644 index 3fdb5087a..000000000 --- a/sdnr/wt/devicemanager/provider/src/test/resources/elasticsearch/plugins/head/src/app/ux/templates/templates.js +++ /dev/null @@ -1,32 +0,0 @@ -(function( app ) { - - var ut = app.ns("ut"); - - ut.option_template = function(v) { return { tag: "OPTION", value: v, text: v }; }; - - ut.require_template = function(f) { return f.require ? { tag: "SPAN", cls: "require", text: "*" } : null; }; - - - var sib_prefix = ['B','ki','Mi', 'Gi', 'Ti', 'Pi', 'Ei', 'Zi', 'Yi']; - - ut.byteSize_template = function(n) { - var i = 0; - while( n >= 1000 ) { - i++; - n /= 1024; - } - return (i === 0 ? n.toString() : n.toFixed( 3 - parseInt(n,10).toString().length )) + ( sib_prefix[ i ] || "..E" ); - }; - - var sid_prefix = ['','k','M', 'G', 'T', 'P', 'E', 'Z', 'Y']; - - ut.count_template = function(n) { - var i = 0; - while( n >= 1000 ) { - i++; - n /= 1000; - } - return i === 0 ? n.toString() : ( n.toFixed( 3 - parseInt(n,10).toString().length ) + ( sid_prefix[ i ] || "..E" ) ); - }; - -})( this.app ); |