mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
7b3be8ed38
commit
1117ae2b59
@ -25,10 +25,11 @@ def set_default_panel_handler(handler):
|
|||||||
default_panel_handler = handler
|
default_panel_handler = handler
|
||||||
|
|
||||||
|
|
||||||
def develop_panel(container):
|
def develop_panel(container_id):
|
||||||
# To use, go to URL:
|
# To use, go to URL:
|
||||||
# http://localhost:8080/?panel=develop-widgets&widget_module=<module name>
|
# http://localhost:8080/#panel=develop-widgets&widget_module=<module name>
|
||||||
# Implement the develop(container) method in that module.
|
# Implement the develop(container) method in that module.
|
||||||
|
container = document.getElementById(container_id)
|
||||||
q = get_current_query()
|
q = get_current_query()
|
||||||
m = q.widget_module
|
m = q.widget_module
|
||||||
if m:
|
if m:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user