few fixes to analytics, checkboxes, and sweetalerts

This commit is contained in:
Kyle Spearrin 2016-12-02 00:05:57 -05:00
parent 6da0d81032
commit 4741eb91dd
3 changed files with 8 additions and 2 deletions

View File

@ -22,8 +22,8 @@
<script src="../lib/angular-ui-router/angular-ui-router.js"></script>
<script src="../lib/angular-toastr/angular-toastr.tpls.js"></script>
<script src="../lib/ngclipboard/ngclipboard.js"></script>
<script src="../lib/sweetalert/SweetAlert.js"></script>
<script src="../lib/sweetalert/sweetalert-dev.js"></script>
<script src="../lib/sweetalert/SweetAlert.js"></script>
<script src="../lib/angularjs-slider/rzslider.js"></script>
<script src="../lib/angulartics/angulartics.js"></script>
<script src="../lib/angulartics/angulartics-ga.js"></script>

View File

@ -1,6 +1,8 @@
var gaTrackingId = chrome.extension.getBackgroundPage().utilsService.analyticsId();
var gaFunc = null;
window.ga = function (action, param1, param2, param3, param4) {
window.GoogleAnalyticsObject = 'ga';
window[window.GoogleAnalyticsObject] = function (action, param1, param2, param3, param4) {
if (!gaFunc) {
return;
}

View File

@ -70,6 +70,10 @@ function initUtilsService() {
}
doc.on('click', '.list-section-item', function (e) {
if (e.isDefaultPrevented && e.isDefaultPrevented.name === 'returnTrue') {
return;
}
var text = $(this).find('input, textarea').not('input[type="checkbox"], input[type="radio"], input[type="hidden"]');
var checkbox = $(this).find('input[type="checkbox"]');
var select = $(this).find('select');