pushing to server

This commit is contained in:
Sanj 2011-04-11 02:47:19 +05:30
parent 5fb754bec8
commit 8ec2c0a041
3 changed files with 6 additions and 5 deletions

View File

@ -11,7 +11,7 @@ ItfBoxTypes = {
'buttons': [
{
'type': 'search',
'icon': 'search',
'icon': 'find',
'mouseover': 'Search'
},
{

View File

@ -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);

View File

@ -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({