Author: ralfbecker
New Revision: 54995
URL: http://svn.stylite.de/viewvc/egroupware?rev=54995&view=rev
Log:
work in progress aligning nextmatch headers
Modified:
trunk/addressbook/inc/class.addressbook_ui.inc.php
trunk/addressbook/templates/default/index.xet
trunk/etemplate/js/et2_extension_nextmatch.js
— trunk/addressbook/inc/class.addressbook_ui.inc.php (original)
+++ trunk/addressbook/inc/class.addressbook_ui.inc.php Fri Feb 12 18:19:27 2016
@@ -306,7 +306,6 @@
// dont show tid-selection if we have only one content_type
// be a bit more sophisticated about it
@@ -739,7 +738,7 @@
);
}
if (isset($actions[‘export’][‘children’][‘csv’]) && !importexport_helper_functions::has_definitions(‘addressbook’,‘export’)) unset($actions[‘export’][‘children’][‘csv’]);
— trunk/addressbook/templates/default/index.xet (original)
+++ trunk/addressbook/templates/default/index.xet Fri Feb 12 18:19:27 2016
@@ -2,20 +2,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -187,46 +173,21 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
— trunk/etemplate/js/et2_extension_nextmatch.js (original)
+++ trunk/etemplate/js/et2_extension_nextmatch.js Fri Feb 12 18:19:27 2016
@@ -66,6 +66,20 @@
/**
- Class which implements the “nextmatch” XET-Tag
-
-
- NM header is build like this in DOM
-
-
- ± nextmatch_header -----±-----------±---------±-------±--------±-------------±----------±------+
-
-
- header_left | search… | header_row | category | filter | filter2 | header_right | favorites | count |
-
- ±------------±---------±-----------±---------±-------±--------±-------------±----------±------+
-
-
- everything left incl. standard filters is floated left:
-
- ± nextmatch_header -----±-----------±---------±-------±--------+
-
-
- header_left | search… | header_row | category | filter | filter2 |
-
- ±------------±---------±-----------±---------±-------±--------+
-
- everything from header_right on is floated right:
-
-
-
@@ -1427,7 +1441,7 @@
self.activeFilters.selectcols.push(‘lettersearch’);
}
self.getInstanceManager().submit();
@@ -1467,7 +1481,7 @@
/**
* Set the currently displayed columns, without updating user's preference
-
-
-
@param {string[]} column_list List of column names
-
@param {boolean} trigger_update=false - explicitly trigger an update
*/
@@ -1506,7 +1520,7 @@
var cf = this.columns[i].widget.options.customfields;
var visible = this.columns[i].widget.options.fields;
@@ -2035,7 +2049,7 @@
var nm = this;
var dialog = et2_dialog.show_dialog(
// Abort the long task if they canceled the data load
-
function() {count = total; cancel=true;window.setTimeout(function() {defer.reject();},0);},
egw.lang('Loading'), egw.lang('please wait...'),{},[
{"button_id": et2_dialog.CANCEL_BUTTON,"text": 'cancel',id: 'dialog[cancel]',image: 'cancel'}
]
@@ -2119,7 +2133,7 @@
{“button_id”: 1,“text”: egw.lang(‘Ok’), id: ‘dialog[ok]’, image: ‘check’, “default”:true},
// Nice for small lists, kills server for large lists
//{“button_id”: 2,“text”: egw.lang(‘All’), id: ‘dialog[all]’, image: ‘’},
-
{"button_id": 0,"text": egw.lang('Cancel'), id: 'dialog[cancel]', image: 'cancel'},
-
{"button_id": 0,"text": egw.lang('Cancel'), id: 'dialog[cancel]', image: 'cancel'}
]
);
return defer;
@@ -2252,19 +2266,18 @@
var self = this;
var nm_div = this.nextmatch.div;
var settings = this.nextmatch.options.settings;
-
this.header_div = jQuery(document.createElement("div")).addClass("ui-helper-clearfix ui-helper-reset").prependTo(this.div);
this.headers = [
{id:this.nextmatch.options.header_left},
{id:this.nextmatch.options.header_right},
{id:this.nextmatch.options.header_row}
];
-
@@ -2311,26 +2324,26 @@
}
);
}
@@ -2342,18 +2355,18 @@
jQuery(self.div).slideToggle(‘fast’);
jQuery(self.div).removeClass(‘nm_header_hide’);
jQuery(this).toggleClass(‘nm_toggle_header_on’);
-
// Context menu
this.action_header = jQuery(document.createElement('button'))
.addClass('nm_action_header')
.click (function(e){
jQuery('tr.selected',self.nextmatch.div).trigger({type:'contextmenu',which:3,originalEvent:e});
})
.prependTo(this.search_box);
-
-
this.search_button = et2_createWidget("button", {id: "search_button","background":"pixelegg/images/topmenu_items/mobile/search_white.png"}, this);
this.search.input.on ('focus blur', function (e){
self.search_box.toggleClass('searchOn');
@@ -2366,7 +2379,7 @@
self.nextmatch.applyFilters({search: self.search.getValue()});
};
}
@@ -2490,13 +2503,26 @@
// Load the template
var self = this;
var header = et2_createWidget(“template”, {“id”: template_name}, this);
-
jQuery(header.getDOMNode()).addClass(location == "left" ? "et2_hbox_left": location=="right" ?"et2_hbox_right":'').addClass("nm_header");
this.headers[id] = header;
var deferred = [];
header.loadingFinished(deferred);
// Wait until all child widgets are loaded, then bind
jQuery.when.apply(jQuery,deferred).then(function() {
-
// fix order in DOM by reattaching templates in correct position
-
switch (id) {
-
case 0: // header_left: prepend
-
jQuery(header.getDOMNode()).prependTo(self.header_div);
-
break;
-
case 1: // header_right: before favorites and count
-
jQuery(header.getDOMNode()).prependTo(self.header_div.find('div.header_row_right'));
-
break;
-
case 2: // header_row: after search
-
window.setTimeout(function(){ // otherwise we might end up after filters
-
jQuery(header.getDOMNode()).insertAfter(self.header_div.find('div.search'));
-
}, 1);
-
break;
-
}
self._bindHeaderInput(header);
});
},
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