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