Author: ralfbecker
New Revision: 55017
URL: http://svn.stylite.de/viewvc/egroupware?rev=55017&view=rev
Log:
quiten a warning, if apps return nothing
Modified:
trunk/etemplate/ (props changed)
trunk/etemplate/inc/class.etemplate_new.inc.php
trunk/etemplate/js/et2_extension_nextmatch.js
trunk/etemplate/js/et2_widget_link.js
trunk/etemplate/js/et2_widget_textbox.js
Propchange: trunk/etemplate/
— svn:mergeinfo (original)
+++ svn:mergeinfo Tue Feb 16 11:14:02 2016
@@ -1,1 +1,1 @@
-/branches/14.2/etemplate:52426,52645-52646,52823,54046,54053
+/branches/14.2/etemplate:52426,52645-52646,52823,54046,54053,55016
— trunk/etemplate/inc/class.etemplate_new.inc.php (original)
+++ trunk/etemplate/inc/class.etemplate_new.inc.php Tue Feb 16 11:14:02 2016
@@ -710,15 +710,18 @@
$widgets = $GLOBALS[‘egw’]->hooks->process(‘etemplate2_register_widgets’);
foreach($widgets as $app => $list)
{
— trunk/etemplate/js/et2_extension_nextmatch.js (original)
+++ trunk/etemplate/js/et2_extension_nextmatch.js Tue Feb 16 11:14:02 2016
@@ -2268,6 +2268,7 @@
var settings = this.nextmatch.options.settings;
this.div.prependTo(nm_div);
@@ -2279,20 +2280,21 @@
// The rest of the header
this.header_div = this.row_div = jQuery(document.createElement(“div”))
.addClass(“nextmatch_header_row”)
-
// searchbox widget
this.et2_searchbox = et2_createWidget('searchbox', {id:"search",onchange:function(){
self.nextmatch.applyFilters({search: this.get_value()});
}
},this);
— trunk/etemplate/js/et2_widget_link.js (original)
+++ trunk/etemplate/js/et2_widget_link.js Tue Feb 16 11:14:02 2016
@@ -1388,7 +1388,7 @@
.appendTo(this.list)
.addClass(“et2_link loading”)
.click( function(e){
@@ -1602,7 +1602,7 @@
window.location = url+"?download";
return false;
}
@@ -1615,7 +1615,7 @@
a.remove();
return false;
}
-
self.egw().open(link_data, "", "view",'download',link_data.target ? link_data.target : link_data.app,link_data.app);
});
this.context.addItem("zip", this.egw().lang("Save as Zip"), this.egw().image('save_zip'), function(menu_item) {
@@ -1767,7 +1767,7 @@
{
this._format_vfs($td, dirs, _link_data);
}
@@ -1781,7 +1781,7 @@
{
self.egw().open(_link_data, “”, “view”,null,_link_data.target ? _link_data.target : _link_data.app,_link_data.app);
}
@@ -1841,7 +1841,7 @@
self.context.getItem(“zip”).set_enabled($j(’[id^=“link_-”]’,this.list).length >= 2);
// Show delete item only if the widget is not readonly
self.context.getItem(“delete”).set_enabled(!self.options.readonly);
— trunk/etemplate/js/et2_widget_textbox.js (original)
+++ trunk/etemplate/js/et2_widget_textbox.js Tue Feb 16 11:14:02 2016
@@ -154,10 +154,10 @@
});
}
},
- /**
- Override the parent set_id method to manuipulate the input DOM node
-
-
-
@param {type} _value
-
@returns {undefined}
*/
@@ -165,12 +165,12 @@
{
this._super.apply(this,arguments);
// Remove the name attribute inorder to affect autocomplete=“off”
- destroy: function() {
var node = this.getInputNode();
if (node) $j(node).unbind(“keypress”);
@@ -276,7 +276,7 @@
this.options.autocomplete = _value;
this.input.attr(‘autocomplete’, _value);
},
- resize: function (_height)
{
if (_height && this.options.multiline)
@@ -409,7 +409,7 @@
/**
- et2_searchbox is a widget which provides a collapsable input search
- with on searching indicator and clear handler regardless of any browser limitation.
-
-
-
@type type
*/
var et2_searchbox = et2_textbox.extend(
@@ -428,23 +428,23 @@
this.value = “”;
this.div = jQuery(document.createElement(‘div’))
.addClass(‘et2_searchbox’);
- _createWidget:function()
{
var self = this;
// search button indicator
-
this.button = et2_createWidget('button',{class:"et2_button_with_image"},this);
-
this.button.onclick= function(){
-
this.button = et2_createWidget('button',{image: 'search', background_image: true/*class:"et2_button_with_image"*/},this);
-
this.button.onclick = function(){
self._show_hide(true);
@@ -470,7 +470,7 @@
self.set_value(’’);
}
},
@@ -482,7 +482,7 @@
}
});
this.div.append(this.search.getDOMNode());
@@ -503,9 +503,9 @@
})
.appendTo(this.div);
},
-
- /**
-
- Show/hide search field
-
@param {boolean} _stat true means show and false means hide
*/
_show_hide: function(_stat)
@@ -513,7 +513,7 @@
jQuery(this.search.getDOMNode()).toggleClass(‘hide’,!_stat);
jQuery(‘span.clear’,this.div).toggleClass(‘hide’,!_stat);
},
- /**
- toggle search button status based on value
*/
@@ -535,17 +535,17 @@
change:function()
{
this._searchToggleState();
-
- get_value:function(){
return this.search.input.val();
},
-
- /**
-
- override doLoadingFinished in order to set initial state
-
- /**
-
- override doLoadingFinished in order to set initial state
*/
doLoadingFinished: function()
{
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs