diff --git a/scm-webapp/src/main/webapp/index.html b/scm-webapp/src/main/webapp/index.html index cfa56d08d8..9de499f3f7 100644 --- a/scm-webapp/src/main/webapp/index.html +++ b/scm-webapp/src/main/webapp/index.html @@ -60,10 +60,14 @@ - + + + + + diff --git a/scm-webapp/src/main/webapp/resources/js/sonia.util.js b/scm-webapp/src/main/webapp/resources/js/override/ext.util.format.js similarity index 77% rename from scm-webapp/src/main/webapp/resources/js/sonia.util.js rename to scm-webapp/src/main/webapp/resources/js/override/ext.util.format.js index 796f7b8e8a..d30be69e15 100644 --- a/scm-webapp/src/main/webapp/resources/js/sonia.util.js +++ b/scm-webapp/src/main/webapp/resources/js/override/ext.util.format.js @@ -29,7 +29,8 @@ * */ - Ext.apply(Ext.util.Format, { + +Ext.apply(Ext.util.Format, { formatTimestamp: function(value){ var date = null; @@ -133,63 +134,3 @@ } }); - -Ext.ns('Sonia.util'); - -// clone method - -Sonia.util.clone = function(obj) { - var newObj = (this instanceof Array) ? [] : {}; - for (i in obj) { - if (i == 'clone') continue; - if (obj[i] && typeof obj[i] == "object") { - newObj[i] = Sonia.util.clone(obj[i]); - } else newObj[i] = obj[i] - } return newObj; -}; - -// link - -Sonia.util.Link = Ext.extend(Ext.BoxComponent, { - - constructor: function(config) { - config = config || {}; - config.xtype = 'box'; - config.autoEl = { tag: 'a', html: config.text, href: '#' }; - Sonia.util.Link.superclass.constructor.apply(this, arguments); - this.addEvents({ - 'click': true, - 'mouseover': true, - 'blur': true - }); - this.text = config.text; - }, - - onRender: function() { - theLnk = this; - this.constructor.superclass.onRender.apply(this, arguments); - if (!theLnk.disabled) { - this.el.on('blur', function(e) { theLnk.fireEvent('blur'); }); - this.el.on('click', function(e) { theLnk.fireEvent('click'); }); - this.el.on('mouseover', function(e) { theLnk.fireEvent('mouseover'); }); - } - } - -}); - -// register xtype -Ext.reg('link', Sonia.util.Link); - -Sonia.util.getStringFromArray = function(array){ - var value = ''; - if ( Ext.isArray(array) ){ - for ( var i=0; i