fixes in print format and wnf
This commit is contained in:
parent
5c8eaa4ac0
commit
fce702fa06
2 changed files with 7 additions and 0 deletions
|
|
@ -35,6 +35,7 @@ _p.go = function(html) {
|
|||
|
||||
_p.preview = function(html) {
|
||||
var w = window.open('');
|
||||
if(!w) return;
|
||||
w.document.write(html)
|
||||
w.document.close();
|
||||
}
|
||||
|
|
|
|||
6
wnf.py
6
wnf.py
|
|
@ -259,10 +259,16 @@ def run():
|
|||
elif options.sync_all is not None:
|
||||
import webnotes.model.sync
|
||||
webnotes.model.sync.sync_all(options.force or 0)
|
||||
# update js code version (clear to localStorage)
|
||||
from build.project import update_version
|
||||
update_version()
|
||||
|
||||
elif options.sync is not None:
|
||||
import webnotes.model.sync
|
||||
webnotes.model.sync.sync(options.sync[0], options.sync[1], options.force or 0)
|
||||
# update js code version (clear to localStorage)
|
||||
from build.project import update_version
|
||||
update_version()
|
||||
|
||||
# print messages
|
||||
if webnotes.message_log:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue