INFRA-132 - angular-crmMailingAB/directives.js
authorTim Otten <totten@civicrm.org>
Sat, 24 Jan 2015 08:00:57 +0000 (00:00 -0800)
committerTim Otten <totten@civicrm.org>
Sat, 24 Jan 2015 08:02:07 +0000 (00:02 -0800)
js/angular-crmMailingAB/directives.js

index 17071a55ee9a1e8be121c444859d963c4493acd1..d5f170c58f7ee0100ca54d95d16f02fd2add047e 100644 (file)
               split_count: options.split_count,
               split_count_select: i
             });
+            /*jshint -W083 */
             result.then(function (data) {
               var temp = 0;
               keep_cnt++;
               var year = t[2];
               var day = t[1].substr(0, t[1].length - 3);
               var t1, hur, hour, min;
-              if (t[3] == "") {
+              if (_.isEmpty(t[3])) {
                 t1 = t[4].split(":");
                 hur = t1[0];
                 if (t[5] == "AM") {