Minor display fixes, and removed useless code
This commit is contained in:
parent
3e7d6fec7c
commit
76e0701f71
@ -57,13 +57,13 @@
|
|||||||
{{> inputAutocomplete settings=schoolcomplete class="form-control creInput" type="text" name="school" placeholder="Example: International Academy" }}
|
{{> inputAutocomplete settings=schoolcomplete class="form-control creInput" type="text" name="school" placeholder="Example: International Academy" }}
|
||||||
<p class="input">Hour:</p><br>
|
<p class="input">Hour:</p><br>
|
||||||
<input class="creInput" type="text" name="hour"><br>
|
<input class="creInput" type="text" name="hour"><br>
|
||||||
<p class="input">Teacher</p>:<br>
|
<p class="input">Teacher:</p><br>
|
||||||
<input class="creInput" type="text" name="teacher"><br>
|
<input class="creInput" type="text" name="teacher"><br>
|
||||||
<p class="input">Class Name:</p><br>
|
<p class="input">Class Name:</p><br>
|
||||||
<input class="creInput" type="text" name="classname"><br>
|
<input class="creInput" type="text" name="classname"><br>
|
||||||
<p class="input">Privacy:</p><br>
|
<p class="input">Privacy:</p><br>
|
||||||
<div class="select">
|
<div class="select">
|
||||||
<input class="creInput creInputSel" type = "text" name="privacy" readonly><br>
|
<input class="creInputSel creInput" type="text" name="privacy" op="0" readonly><br>
|
||||||
<div class="creOptions" style="background-color:{{divColor 'header'}}">
|
<div class="creOptions" style="background-color:{{divColor 'header'}}">
|
||||||
<p>Public</p>
|
<p>Public</p>
|
||||||
<p>Private</p>
|
<p>Private</p>
|
||||||
@ -71,7 +71,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<p class="input">Category:</p><br>
|
<p class="input">Category:</p><br>
|
||||||
<div class="select">
|
<div class="select">
|
||||||
<input class="creInput creInputSel" type="text" name="category" readonly><br>
|
<input class="creInputSel creInput" type="text" name="category" op="1" readonly><br>
|
||||||
<div class="creOptions" style="background-color:{{divColor 'header'}}">
|
<div class="creOptions" style="background-color:{{divColor 'header'}}">
|
||||||
<p>Class</p>
|
<p>Class</p>
|
||||||
<p>Club</p>
|
<p>Club</p>
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
import { Template } from 'meteor/templating';
|
import { Template } from 'meteor/templating';
|
||||||
import { ReactiveVar } from 'meteor/reactive-var';
|
|
||||||
|
|
||||||
import './main.html';
|
import './main.html';
|
||||||
|
|
||||||
@ -21,7 +20,6 @@ var themeColors = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
var options = {
|
var options = {
|
||||||
"school": [],
|
|
||||||
"privacy": ["Public", "Hidden"],
|
"privacy": ["Public", "Hidden"],
|
||||||
"category": ["Class", "Club", "Other"]
|
"category": ["Class", "Club", "Other"]
|
||||||
}
|
}
|
||||||
@ -34,6 +32,7 @@ Session.set("mode",null); // Change to user preferences
|
|||||||
Session.set("function", null);
|
Session.set("function", null);
|
||||||
Session.set("confirm",null);
|
Session.set("confirm",null);
|
||||||
Session.set("formCre",null);
|
Session.set("formCre",null);
|
||||||
|
Session.set("inputOpen",null);
|
||||||
|
|
||||||
Cookie.set("theme","light",{'years':15});
|
Cookie.set("theme","light",{'years':15});
|
||||||
|
|
||||||
@ -182,12 +181,20 @@ Template.main.events({
|
|||||||
}, 300);
|
}, 300);
|
||||||
},
|
},
|
||||||
'click .creInput' (event) {
|
'click .creInput' (event) {
|
||||||
|
var opened = Session.get("inputOpen");
|
||||||
|
if(opened !== null && opened !== event.target.getAttribute("op")) {
|
||||||
|
closeDivFade(document.getElementsByClassName("creInputSel")[opened].parentNode.childNodes[4]);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'click .creInputSel' (event) {
|
||||||
|
Session.set("inputOpen", event.target.getAttribute("op"));
|
||||||
openDivFade(event.target.parentNode.childNodes[4]);
|
openDivFade(event.target.parentNode.childNodes[4]);
|
||||||
},
|
},
|
||||||
'click .creOptions p' (event) {
|
'click .creOptions p' (event) {
|
||||||
var p = event.target;
|
var p = event.target;
|
||||||
p.parentNode.parentNode.childNodes[1].value = p.childNodes[0].nodeValue;
|
p.parentNode.parentNode.childNodes[1].value = p.childNodes[0].nodeValue;
|
||||||
closeDivFade(p.parentNode);
|
closeDivFade(p.parentNode);
|
||||||
|
Session.set("inputOpen",null)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user