Parent: [67df1e] (diff)

Child: [3fc04c] (diff)

Download this file

wiki.py    13 lines (11 with data), 495 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
import ew.jinja2_ew as ew
from allura.lib.widgets import form_fields as ffw
class CreatePageWidget(ffw.Lightbox):
def resources(self):
for r in super(CreatePageWidget, self).resources(): yield r
yield ew.JSScript('''$(function () {
$('#lightbox_create_wiki_page form').submit(function(){
location.href=$('#sidebar a.add_wiki_page').attr('href')+$('input[name=name]', $(this)).val();
return false;
});
});''');