Browse Source
add user manager for server admins, see #15. changing an account's owner doesn't work yet, backing up what I have so far :)
Natenom/support-murmur-13-1446181288462
add user manager for server admins, see #15. changing an account's owner doesn't work yet, backing up what I have so far :)
Natenom/support-murmur-13-1446181288462
Michael Ziegler
16 years ago
5 changed files with 202 additions and 4 deletions
-
39htdocs/checkcolumn.js
-
1pyweb/mumble/urls.py
-
60pyweb/mumble/views.py
-
1template/index.htm
-
105template/mumble/mumble.htm
@ -0,0 +1,39 @@ |
|||||
|
/* |
||||
|
* Ext JS Library 2.2 |
||||
|
* Copyright(c) 2006-2008, Ext JS, LLC. |
||||
|
* licensing@extjs.com |
||||
|
* |
||||
|
* http://extjs.com/license
|
||||
|
*/ |
||||
|
|
||||
|
Ext.grid.CheckColumn = function(config){ |
||||
|
Ext.apply(this, config); |
||||
|
if(!this.id){ |
||||
|
this.id = Ext.id(); |
||||
|
} |
||||
|
this.renderer = this.renderer.createDelegate(this); |
||||
|
}; |
||||
|
|
||||
|
Ext.grid.CheckColumn.prototype ={ |
||||
|
init : function(grid){ |
||||
|
this.grid = grid; |
||||
|
this.grid.on('render', function(){ |
||||
|
var view = this.grid.getView(); |
||||
|
view.mainBody.on('mousedown', this.onMouseDown, this); |
||||
|
}, this); |
||||
|
}, |
||||
|
|
||||
|
onMouseDown : function(e, t){ |
||||
|
if(t.className && t.className.indexOf('x-grid3-cc-'+this.id) != -1){ |
||||
|
e.stopEvent(); |
||||
|
var index = this.grid.getView().findRowIndex(t); |
||||
|
var record = this.grid.store.getAt(index); |
||||
|
record.set(this.dataIndex, !record.data[this.dataIndex]); |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
renderer : function(v, p, record){ |
||||
|
p.css += ' x-grid3-check-col-td'; |
||||
|
return '<div class="x-grid3-check-col'+(v?'-on':'')+' x-grid3-cc-'+this.id+'"> </div>'; |
||||
|
} |
||||
|
}; |
Write
Preview
Loading…
Cancel
Save
Reference in new issue