summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDeterme, Sebastien (sd378r) <sd378r@intl.att.com>2018-07-04 11:36:45 +0200
committerDeterme, Sebastien (sd378r) <sd378r@intl.att.com>2018-07-04 11:36:45 +0200
commitea5b0b5b35ddee80a07bef4af391387ed348658b (patch)
treeb6973b3e0bead3bb7a163bc5a9a60d0faca7554a /src
parent7aff68b71545a4e17ee8d4cff19d66756d1a9304 (diff)
Remove useless file
Remove index.js that was in the lib folder Issue-ID: CLAMP-191 Change-Id: I2e14efd9756a6089397fd0afdebc0185c8256a5c Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
Diffstat (limited to 'src')
-rw-r--r--src/main/resources/META-INF/resources/designer/lib/index.js52
1 files changed, 0 insertions, 52 deletions
diff --git a/src/main/resources/META-INF/resources/designer/lib/index.js b/src/main/resources/META-INF/resources/designer/lib/index.js
deleted file mode 100644
index 0a66133f..00000000
--- a/src/main/resources/META-INF/resources/designer/lib/index.js
+++ /dev/null
@@ -1,52 +0,0 @@
-$(function() {
- var $wrapper = $('#wrapper');
-
- // theme switcher
- var theme_match = String(window.location).match(/[?&]theme=([a-z0-9]+)/);
- var theme = (theme_match && theme_match[1]) || 'default';
- var themes = ['default','legacy','bootstrap2','bootstrap3'];
- $('head').append('<link rel="stylesheet" href="css/selectize.' + theme + '.css">');
-
- var $themes = $('<div>').addClass('theme-selector').insertAfter('h1');
- for (var i = 0; i < themes.length; i++) {
- $themes.append('<a href="?theme=' + themes[i] + '"' + (themes[i] === theme ? ' class="active"' : '') + '>' + themes[i] + '</a>');
- }
-
- // display scripts on the page
- $('script', $wrapper).each(function()
- {
- var code = this.text;
- if (code && code.length) {
- var lines = code.split('\n');
- var indent = null;
-
- for (var i = 0; i < lines.length; i++) {
- if (/^[ ]*$/.test(lines[i])) continue;
- if (!indent) {
- var lineindent = lines[i].match(/^([ ]+)/);
- if (!lineindent) break;
- indent = lineindent[1];
- }
- lines[i] = lines[i].replace(new RegExp('^' + indent), '');
- }
-
- var code = $.trim(lines.join('\n')).replace(/ /g, ' ');
- var $pre = $('<pre>').addClass('js').text(code);
- $pre.insertAfter(this);
- }
- });
-
- // show current input values
- $('select.selectized,input.selectized', $wrapper).each(function()
- {
- var $container = $('<div>').addClass('value').html('Current Value: ');
- var $value = $('<span>').appendTo($container);
- var $input = $(this);
- var update = function(e) { $value.text(JSON.stringify($input.val())); }
-
- $(this).on('change', update);
- update();
-
- $container.insertAfter($input);
- });
-}); \ No newline at end of file