Create profile xml structure

This commit is contained in:
Luke Pulverenti 2014-03-26 11:06:48 -04:00
parent a41f301fe2
commit 9b0d0e699a
2 changed files with 10 additions and 7 deletions

View File

@ -19,7 +19,7 @@
</div>
</div>
<div data-role="popup" id="popupAddTrigger" class="popup" style="min-width: 300px;">
<form id="addTriggerForm">
<form class="addTriggerForm">
<div class="ui-bar-b" style="text-align: center; padding: 0 20px;">
<h3>Add Task Trigger</h3>
</div>
@ -85,6 +85,9 @@
</div>
</form>
</div>
<script type="text/javascript">
$('.addTriggerForm').off('submit', ScheduledTaskPage.onSubmit).on('submit', ScheduledTaskPage.onSubmit);
</script>
</div>
</body>
</html>

View File

@ -140,13 +140,13 @@
$('#addTriggerForm', page).off("submit");
$(this).off("popupafterclose");
});
},
$('#addTriggerForm', page).on('submit', function () {
onSubmit: function() {
ScheduledTaskPage.addTrigger();
return false;
});
},
addTrigger: function () {