' +
+ '
' +
'' + name + '
' +
info + '
' +
'
';
@@ -407,11 +407,11 @@
AdminsHelper.prototype.select = function(id, display) {
display = display || false;
- $('#filter-admins .selected-row').removeClass('selected-row');
+ $('#filter-admins .selected').removeClass('selected');
$('.admin-row').each(function() {
if ($(this).attr('data-id') == id) {
- $(this).addClass('selected-row');
+ $(this).addClass('selected');
return false;
}
});
diff --git a/src/assets/js/backend_users_providers.js b/src/assets/js/backend_users_providers.js
index 2c04c662..e0daf602 100644
--- a/src/assets/js/backend_users_providers.js
+++ b/src/assets/js/backend_users_providers.js
@@ -37,7 +37,7 @@
*/
$('#providers').on('submit', '#filter-providers form', function() {
var key = $('#filter-providers .key').val();
- $('.selected-row').removeClass('selected-row');
+ $('.selected').removeClass('selected');
this.resetForm();
this.filter(key);
return false;
@@ -74,8 +74,8 @@
});
this.display(provider);
- $('#filter-providers .selected-row').removeClass('selected-row');
- $(e.currentTarget).addClass('selected-row');
+ $('#filter-providers .selected').removeClass('selected');
+ $(e.currentTarget).addClass('selected');
$('#edit-provider, #delete-provider').prop('disabled', false);
}.bind(this));
@@ -88,7 +88,7 @@
$('#filter-providers .results').css('color', '#AAA');
$('#providers .add-edit-delete-group').hide();
$('#providers .save-cancel-group').show();
- $('#providers .details').find('input, textarea').prop('readonly', false);
+ $('#providers .record-details').find('input, textarea').prop('readonly', false);
$('#provider-password, #provider-password-confirm').addClass('required');
$('#provider-notifications').prop('disabled', false);
$('#providers').find('.add-break, .edit-break, .delete-break, #reset-working-plan').prop('disabled', false);
@@ -108,7 +108,7 @@
$('#providers .save-cancel-group').show();
$('#filter-providers button').prop('disabled', true);
$('#filter-providers .results').css('color', '#AAA');
- $('#providers .details').find('input, textarea').prop('readonly', false);
+ $('#providers .record-details').find('input, textarea').prop('readonly', false);
$('#provider-password, #provider-password-confirm').removeClass('required');
$('#provider-notifications').prop('disabled', false);
$('#provider-services input[type="checkbox"]').prop('disabled', false);
@@ -189,7 +189,7 @@
* Cancel add or edit of an provider record.
*/
$('#providers').on('click', '#cancel-provider', function() {
- var id = $('#filter-providers .selected-row').attr('data-id');
+ var id = $('#filter-providers .selected').attr('data-id');
this.resetForm();
if (id != '') {
this.select(id, true);
@@ -335,13 +335,13 @@
* Resets the admin tab form back to its initial state.
*/
ProvidersHelper.prototype.resetForm = function() {
- $('#filter-providers .selected-row').removeClass('selected-row');
+ $('#filter-providers .selected').removeClass('selected');
$('#filter-providers button').prop('disabled', false);
$('#filter-providers .results').css('color', '');
$('#providers .add-edit-delete-group').show();
$('#providers .save-cancel-group').hide();
- $('#providers .details').find('input, textarea').prop('readonly', true);
+ $('#providers .record-details').find('input, textarea').prop('readonly', true);
$('#providers .form-message').hide();
$('#provider-notifications').removeClass('active');
$('#provider-notifications').prop('disabled', true);
@@ -355,7 +355,7 @@
$('.breaks').find('.edit-break, .delete-break').prop('disabled', true);
$('#edit-provider, #delete-provider').prop('disabled', true);
- $('#providers .details').find('input, textarea').val('');
+ $('#providers .record-details').find('input, textarea').val('');
$('#providers input[type="checkbox"]').prop('checked', false);
$('#provider-services input[type="checkbox"]').prop('checked', false);
$('#providers .breaks tbody').empty();
@@ -461,7 +461,7 @@
? info + ', ' + provider.phone_number : info;
var html =
- '
' +
+ '
' +
'' + name + '
' +
info + '
' +
'
';
@@ -548,7 +548,7 @@
// Select record in filter results.
$('#filter-providers .provider-row').each(function() {
if ($(this).attr('data-id') == id) {
- $(this).addClass('selected-row');
+ $(this).addClass('selected');
return false;
}
});
diff --git a/src/assets/js/backend_users_secretaries.js b/src/assets/js/backend_users_secretaries.js
index 311a8425..11270f81 100644
--- a/src/assets/js/backend_users_secretaries.js
+++ b/src/assets/js/backend_users_secretaries.js
@@ -37,7 +37,7 @@
*/
$('#secretaries').on('submit', '#filter-secretaries form', function() {
var key = $('#filter-secretaries .key').val();
- $('#filter-secretaries .selected-row').removeClass('selected-row');
+ $('#filter-secretaries .selected').removeClass('selected');
this.resetForm();
this.filter(key);
return false;
@@ -75,8 +75,8 @@
this.display(secretary);
- $('#filter-secretaries .selected-row').removeClass('selected-row');
- $(e.currentTarget).addClass('selected-row');
+ $('#filter-secretaries .selected').removeClass('selected');
+ $(e.currentTarget).addClass('selected');
$('#edit-secretary, #delete-secretary').prop('disabled', false);
}.bind(this));
@@ -90,7 +90,7 @@
$('#secretaries .add-edit-delete-group').hide();
$('#secretaries .save-cancel-group').show();
- $('#secretaries .details').find('input, textarea').prop('readonly', false);
+ $('#secretaries .record-details').find('input, textarea').prop('readonly', false);
$('#secretary-password, #secretary-password-confirm').addClass('required');
$('#secretary-notifications').prop('disabled', false);
$('#secretary-providers input[type="checkbox"]').prop('disabled', false);
@@ -104,7 +104,7 @@
$('#filter-secretaries .results').css('color', '#AAA');
$('#secretaries .add-edit-delete-group').hide();
$('#secretaries .save-cancel-group').show();
- $('#secretaries .details').find('input, textarea').prop('readonly', false);
+ $('#secretaries .record-details').find('input, textarea').prop('readonly', false);
$('#secretary-password, #secretary-password-confirm').removeClass('required');
$('#secretary-notifications').prop('disabled', false);
$('#secretary-providers input[type="checkbox"]').prop('disabled', false);
@@ -297,11 +297,11 @@
* Resets the admin tab form back to its initial state.
*/
SecretariesHelper.prototype.resetForm = function() {
- $('#secretaries .details').find('input, textarea').val('');
+ $('#secretaries .record-details').find('input, textarea').val('');
$('#secretaries .add-edit-delete-group').show();
$('#secretaries .save-cancel-group').hide();
$('#edit-secretary, #delete-secretary').prop('disabled', true);
- $('#secretaries .details').find('input, textarea').prop('readonly', true);
+ $('#secretaries .record-details').find('input, textarea').prop('readonly', true);
$('#secretaries .form-message').hide();
$('#secretary-notifications').removeClass('active');
$('#secretary-notifications').prop('disabled', true);
@@ -310,7 +310,7 @@
$('#secretaries .required').css('border', '');
$('#secretary-password, #secretary-password-confirm').css('border', '');
- $('#filter-secretaries .selected-row').removeClass('selected-row');
+ $('#filter-secretaries .selected').removeClass('selected');
$('#filter-secretaries button').prop('disabled', false);
$('#filter-secretaries .results').css('color', '');
};
@@ -410,7 +410,7 @@
? info + ', ' + secretary.phone_number : info;
var html =
- '
' +
+ '
' +
'' + name + '
' +
info + '
' +
'
';
@@ -428,11 +428,11 @@
SecretariesHelper.prototype.select = function(id, display) {
display = display || false;
- $('#filter-secretaries .selected-row').removeClass('selected-row');
+ $('#filter-secretaries .selected').removeClass('selected');
$('#filter-secretaries .secretary-row').each(function() {
if ($(this).attr('data-id') == id) {
- $(this).addClass('selected-row');
+ $(this).addClass('selected');
return false;
}
});