[about] [minor] Cleaup
This commit is contained in:
parent
47254664c3
commit
11c8579c71
2 changed files with 0 additions and 23 deletions
|
|
@ -72,7 +72,6 @@
|
|||
"lib/public/js/wn/misc/user.js",
|
||||
"lib/public/js/wn/misc/utils.js",
|
||||
"lib/public/js/wn/misc/tools.js",
|
||||
"lib/public/js/wn/misc/about.js",
|
||||
"lib/public/js/wn/misc/datetime.js",
|
||||
"lib/public/js/wn/misc/number_format.js",
|
||||
|
||||
|
|
|
|||
|
|
@ -1,22 +0,0 @@
|
|||
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
|
||||
// MIT License. See license.txt
|
||||
|
||||
// ABOUT
|
||||
|
||||
wn.provide('wn.ui.misc');
|
||||
wn.ui.misc.about = function() {
|
||||
if(!wn.ui.misc.about_dialog) {
|
||||
var d = new wn.ui.Dialog({title:'About wnframework'})
|
||||
|
||||
$(d.body).html(repl("<div style='padding: 20px'<p><b>Application Name:</b> %(name)s</p>\
|
||||
<p><b>Version:</b> %(version)s</p>\
|
||||
<p><b>License:</b> %(license)s</p>\
|
||||
<p><b>Source Code:</b> %(source)s</p>\
|
||||
<p><b>Publisher:</b> %(publisher)s</p>\
|
||||
<p><b>Copyright:</b> %(copyright)s</p></div>", wn.app));
|
||||
|
||||
wn.ui.misc.about_dialog = d;
|
||||
}
|
||||
|
||||
wn.ui.misc.about_dialog.show();
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue