Large set of changes - building the GUI for the data tracking app.

This commit is contained in:
Wynne Crisman
2016-08-17 17:54:59 -07:00
parent 08266cdd41
commit b3bbdc0c2a
47 changed files with 4186 additions and 158 deletions

View File

@@ -50,16 +50,21 @@ $(document).ready(function($) {
(function(){
var htmlOriginal = jQuery.fn.html;
jQuery.fn.html = function(html) {
var data = brainstormFramework.extractViewData(html);
htmlOriginal.apply(this, [data.view]);
if(data.script && data.script.length > 0) {
try {
eval(data.script);
} catch(err) {
alert(err);
if(html != undefined) {
var data = brainstormFramework.extractViewData(html);
htmlOriginal.apply(this, [data.view]);
if(data.script && data.script.length > 0) {
try {
eval(data.script);
} catch(err) {
alert(err);
}
}
}
else {
htmlOriginal.apply(this, html);
}
}
})();