You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In response to a feature request by email I responded (note, main.jas has been edited since this and the line numbers are at least a few off):
I did make a special case in the javascript for if there is only one app, start with it open. But starting open and starting with all the datasets checked or not would best be an option in the app.
The most reusable way to do this would be to let apps have keys that tell the javascript to start with the app open and whether or not the start with all the datasets checked. "startopen" and "startchecked" maybe.
In the javascript, these keys would be added to the metaTags (line 52).
then, the startopen would be processed on line 265, replacing the "if there's only one app" condition. (either startopen or startchecked should trigger this) (actually, it should go right after the handler is defined, within the loop, right after line 261.
The startchecked would be processed in a similar way, inserted after line 228. Actually, I don't have time to play with it right now, but I think line 224-228 might need to be moved to line 209 and activating the check could happen within the loop, right after the checkbox is created (so right after line 220)
would startchecked make it so the datasets start checked only on load? Or every time the app is opened? If the former, after checking all the boxes, the hash value should be changed from true to false.
The non-reusable answer would be for you to change the javascript to fit your specific case. The html specifies main.js as the file to import, so build_page can;t take a javascript file name as an argument without some tweaking, and having different files for different behavior would be difficult to maintain.
Sorry the javascript is kind of a mess. My friend wrote it quickly and I'm not a javascript programmer so I kind of hacked it up a bit more.
The text was updated successfully, but these errors were encountered:
In response to a feature request by email I responded (note, main.jas has been edited since this and the line numbers are at least a few off):
I did make a special case in the javascript for if there is only one app, start with it open. But starting open and starting with all the datasets checked or not would best be an option in the app.
The most reusable way to do this would be to let apps have keys that tell the javascript to start with the app open and whether or not the start with all the datasets checked. "startopen" and "startchecked" maybe.
In the javascript, these keys would be added to the metaTags (line 52).
then, the startopen would be processed on line 265, replacing the "if there's only one app" condition. (either startopen or startchecked should trigger this) (actually, it should go right after the handler is defined, within the loop, right after line 261.
The startchecked would be processed in a similar way, inserted after line 228. Actually, I don't have time to play with it right now, but I think line 224-228 might need to be moved to line 209 and activating the check could happen within the loop, right after the checkbox is created (so right after line 220)
would startchecked make it so the datasets start checked only on load? Or every time the app is opened? If the former, after checking all the boxes, the hash value should be changed from true to false.
The non-reusable answer would be for you to change the javascript to fit your specific case. The html specifies main.js as the file to import, so build_page can;t take a javascript file name as an argument without some tweaking, and having different files for different behavior would be difficult to maintain.
Sorry the javascript is kind of a mess. My friend wrote it quickly and I'm not a javascript programmer so I kind of hacked it up a bit more.
The text was updated successfully, but these errors were encountered: