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