Przeglądaj źródła

fixes in print format and wnf

version-14
Anand Doshi 13 lat temu
rodzic
commit
fce702fa06
2 zmienionych plików z 7 dodań i 0 usunięć
  1. +1
    -0
      js/legacy/widgets/form/print_format.js
  2. +6
    -0
      wnf.py

+ 1
- 0
js/legacy/widgets/form/print_format.js Wyświetl plik

@@ -35,6 +35,7 @@ _p.go = function(html) {


_p.preview = function(html) { _p.preview = function(html) {
var w = window.open(''); var w = window.open('');
if(!w) return;
w.document.write(html) w.document.write(html)
w.document.close(); w.document.close();
} }


+ 6
- 0
wnf.py Wyświetl plik

@@ -259,10 +259,16 @@ def run():
elif options.sync_all is not None: elif options.sync_all is not None:
import webnotes.model.sync import webnotes.model.sync
webnotes.model.sync.sync_all(options.force or 0) 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: elif options.sync is not None:
import webnotes.model.sync import webnotes.model.sync
webnotes.model.sync.sync(options.sync[0], options.sync[1], options.force or 0) 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 # print messages
if webnotes.message_log: if webnotes.message_log:


Ładowanie…
Anuluj
Zapisz