mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-20 05:29:18 +00:00
refactored blog client-side code
This commit is contained in:
@@ -42,4 +42,12 @@ function get_url_arg(name) {
|
||||
return "";
|
||||
else
|
||||
return decodeURIComponent(results[1]);
|
||||
}
|
||||
}
|
||||
|
||||
function repl(s, dict) {
|
||||
if(s==null)return '';
|
||||
for(key in dict) {
|
||||
s = s.split("%("+key+")s").join(dict[key]);
|
||||
}
|
||||
return s;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user