mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-16 00:05:56 +00:00
rework dojo singleton modules to better work with phpstorm completion (ugh) - declare() is not needed there anyway
remove event.observe from login form (not needed) load pluginhost via amd
This commit is contained in:
@@ -19,30 +19,27 @@
|
||||
|
||||
<script type="text/javascript">
|
||||
require({cache:{}});
|
||||
Event.observe(window, 'load', function() {
|
||||
init();
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body class="claro ttrss_main ttrss_login">
|
||||
|
||||
<script type="text/javascript">
|
||||
function init() {
|
||||
require(['dojo/parser', "dojo/ready", 'dijit/form/Button','dijit/form/CheckBox','dijit/form/Form',
|
||||
'dijit/form/Select','dijit/form/TextBox','dijit/form/ValidationTextBox'],function(parser, ready){
|
||||
ready(function() {
|
||||
parser.parse();
|
||||
|
||||
require(['dojo/parser','dijit/form/Button','dijit/form/CheckBox','dijit/form/Form',
|
||||
'dijit/form/Select','dijit/form/TextBox','dijit/form/ValidationTextBox'],function(parser){
|
||||
parser.parse();
|
||||
//show tooltip node only after this widget is instaniated.
|
||||
dojo.query('div[dojoType="dijit.Tooltip"]').style({
|
||||
display:''
|
||||
});
|
||||
fetchProfiles();
|
||||
dijit.byId("bw_limit").attr("checked", Cookie.get("ttrss_bwlimit") == 'true');
|
||||
document.forms.loginForm.login.focus();
|
||||
});
|
||||
//show tooltip node only after this widget is instaniated.
|
||||
dojo.query('div[dojoType="dijit.Tooltip"]').style({
|
||||
display:''
|
||||
});
|
||||
|
||||
}
|
||||
fetchProfiles();
|
||||
dijit.byId("bw_limit").attr("checked", Cookie.get("ttrss_bwlimit") == 'true');
|
||||
document.forms.loginForm.login.focus();
|
||||
});
|
||||
});
|
||||
|
||||
function fetchProfiles() {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user