Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #179 from clint-tseng/cxlt/minor-fixes
Browse files Browse the repository at this point in the history
Some minor fixes
  • Loading branch information
lognaturel committed Jul 27, 2017
2 parents edc42f4 + b5178ca commit 532f8f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion public/javascripts/core.validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,16 @@

propertiesRouting[param][id].f = go = function()
{
// if we have been reaped since our check was scheduled (eg by an open-form op), bail.
if ((controls.length > 0) && !document.body.contains(controls[0])) return;

f(_.map(controls, function(control) { return $(control).data('odkControl-properties')[param].value; }));
scheduled = false;
};

if (scheduled === false)
{
_.defer(function() { go(); });
_.defer(go);
scheduled = true;
}
};
Expand Down
1 change: 1 addition & 0 deletions public/javascripts/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ var dataNS = odkmaker.namespace.load('odkmaker.data');
$('.control').trigger('odkControl-removing');
$('.control').trigger('odkControl-removed');
$('.workspace').empty();
odkmaker.application.clearProperties();

$('h1').text(formObj.title);
$('#formProperties_title').val(formObj.metadata.htitle)
Expand Down

0 comments on commit 532f8f7

Please sign in to comment.