Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
git-svn-id: svn://cherokee-project.com/CTK/trunk@4480 5dc97367-97f1-0310-9951-d761b3857238
  • Loading branch information
alobbs committed Mar 15, 2010
1 parent bdf857d commit 2020464
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 10 deletions.
10 changes: 5 additions & 5 deletions CTK/Table.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@
class TableField (Container):
def __init__ (self, widget=None):
Container.__init__ (self)
self._props = {}
self._tag = 'td'
self.props = {}
self._tag = 'td'

if widget:
Container.__iadd__ (self, widget)

def Render (self):
# Build tag props
props = ''
for p in self._props:
value = self._props[p]
for p in self.props:
value = self.props[p]
if value:
props += ' %s="%s"' %(p, value)
else:
Expand All @@ -58,7 +58,7 @@ def __setitem__ (self, prop, value):
assert type(prop) == str
assert type(value) == str

self._props[prop] = value
self.props[prop] = value


class TableRow (Widget):
Expand Down
5 changes: 3 additions & 2 deletions CTK/Widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ def __add__ (self, other):
return i

def toStr (self):
txt = self.html
txt += HTML_JS_ON_READY_BLOCK %(self.js)
txt = self.html
if self.js:
txt += HTML_JS_ON_READY_BLOCK %(self.js)
return Postprocess(txt)


Expand Down
18 changes: 15 additions & 3 deletions static/css/CTK.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
width: 944px;
bottom: 20px;
color: #27c;
height: 15px;
height: 15px;
}
#activity span {
#activity span {
background: #fff url(/CTK/images/loader.gif) no-repeat ;
padding: 1px 8px 0 19px;
}
Expand Down Expand Up @@ -334,7 +334,7 @@ a.helpbutton span {

/* Top dialog
*/
#topdialog {
#topdialog {
background: #fff6b6;
color: #3b3929;
height: 32px;
Expand All @@ -346,3 +346,15 @@ a.helpbutton span {

#topdialog .topmsg { float: left; padding: 8px 0 0 16px; font-weight: bold; }
#topdialog .buttonarea { float: right; padding-top: 4px; }

/* Sortable Table
*/
.dragHandle {
width: 18px;
cursor: move;
background: transparent url(/CTK/images/arrow_ns.png) center center no-repeat;
}

.panel-selected {
background-color: #f00;
}

0 comments on commit 2020464

Please sign in to comment.