number issue
This commit is contained in:
parent
3aab4ba19e
commit
64b737761e
@ -180,7 +180,7 @@ class Broadcast_model extends CI_Model {
|
||||
$this->db->insert_batch('T_BroadcastStatus', $data);
|
||||
if ($this->db->affected_rows() >= 1) {
|
||||
$result['msgStatus'] = true;
|
||||
$result['message'] = "Successfully Messages Sended!!";
|
||||
$result['message'] = "Successfully Messages Sent!!";
|
||||
} else {
|
||||
$result['msgStatus'] = false;
|
||||
$result['message'] = "error!!";
|
||||
|
||||
@ -185,7 +185,7 @@ app.controller('sendSMSsuperadminCtrl', ["$scope", "$filter", "ngTableParams", "
|
||||
$scope.statusUpdate = {
|
||||
submit: function (form, msg_details) {
|
||||
|
||||
// alert()
|
||||
//alert()
|
||||
var firstError = null;
|
||||
if (form.$invalid) {
|
||||
var field = null, firstError = null;
|
||||
@ -363,22 +363,26 @@ app.controller('sendSMSsuperadminCtrl', ["$scope", "$filter", "ngTableParams", "
|
||||
|
||||
|
||||
var firstError = null;
|
||||
// console.log(form.$invalid);
|
||||
if (form.$invalid) {
|
||||
var msgg = $scope.mobileNumList.message;
|
||||
|
||||
// console.log(msgg);
|
||||
// return false;
|
||||
if ((msgg =='')||(msgg ==undefined)) {
|
||||
|
||||
swal(" ", "No Message Body.", "error");
|
||||
// alert('in')
|
||||
var field = null, firstError = null;
|
||||
for (field in form) {
|
||||
if (field[0] != '$') {
|
||||
if (firstError === null && !form[field].$valid) {
|
||||
firstError = form[field].$name;
|
||||
}
|
||||
if (form[field].$pristine) {
|
||||
form[field].$dirty = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
angular.element('.ng-invalid[name=' + firstError + ']').focus();
|
||||
// var field = null, firstError = null;
|
||||
// for (field in form) {
|
||||
// if (field[0] != '$') {
|
||||
// if (firstError === null && !form[field].$valid) {
|
||||
// firstError = form[field].$name;
|
||||
// }
|
||||
// if (form[field].$pristine) {
|
||||
// form[field].$dirty = true;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// angular.element('.ng-invalid[name=' + firstError + ']').focus();
|
||||
} else {
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user