pushing to server
This commit is contained in:
parent
5fb754bec8
commit
8ec2c0a041
|
@ -11,7 +11,7 @@ ItfBoxTypes = {
|
|||
'buttons': [
|
||||
{
|
||||
'type': 'search',
|
||||
'icon': 'search',
|
||||
'icon': 'find',
|
||||
'mouseover': 'Search'
|
||||
},
|
||||
{
|
||||
|
|
|
@ -76,14 +76,15 @@ Ox.ItfBox = function(boxData) {
|
|||
.addClass('OxTitle')
|
||||
.html(boxData.title)
|
||||
.appendTo($titlebar);
|
||||
var $buttons = new Ox.Element().appendTo($title).css({'position': 'absolute', 'top': '1px', 'right': '1px'});
|
||||
var $buttons = new Ox.Element().appendTo($title).css({'position': 'absolute', 'top': '1px', 'right': '10px'});
|
||||
var boxButtons = Ox.merge(ItfBoxTypes[boxData.type].buttons, boxData.extra_buttons);
|
||||
for (var i=0; i<boxButtons.length; i++) {
|
||||
var t = boxButtons[i];
|
||||
var button = new Ox.ItfButton(t, boxData).appendTo($buttons);
|
||||
}
|
||||
$contentContainer = new Ox.Element().css({'position': 'relative', 'height': '90%'}).appendTo(that);
|
||||
$content = ItfBoxTypes[boxData.type].render(boxData);
|
||||
$content.appendTo(that);
|
||||
$content.appendTo($contentContainer);
|
||||
that.$content = $content;
|
||||
return that;
|
||||
};
|
||||
|
@ -112,7 +113,7 @@ Ox.ItfList = function(modelData, boxData, size, self) {
|
|||
'module': modelData.module,
|
||||
'boxId': boxData.itfId,
|
||||
'width': size,
|
||||
'scrollbarVisible': true,
|
||||
'scrollbarVisible': false,
|
||||
'hasComments': modelData.has_comments || false,
|
||||
'items': function(data, callback) {
|
||||
app.api.find(getFindParams(modelData, boxData, data), callback);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
Ox.ItfBox = function(options, self) {
|
||||
Ox.ItfBoxCommented = function(options, self) {
|
||||
var self = self || {};
|
||||
var that = new Ox.Element(options, self)
|
||||
.defaults({
|
||||
|
|
Loading…
Reference in New Issue
Block a user