mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-23 07:03:26 +03:00
Removed jscrollpane from the app.
This commit is contained in:
parent
fdd309c9d5
commit
54ee07bf24
11 changed files with 0 additions and 161 deletions
|
@ -1,120 +0,0 @@
|
|||
/*
|
||||
* CSS Styles that are needed by jScrollPane for it to operate correctly.
|
||||
*
|
||||
* Include this stylesheet in your site or copy and paste the styles below into your stylesheet - jScrollPane
|
||||
* may not operate correctly without them.
|
||||
*/
|
||||
|
||||
.jspContainer
|
||||
{
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.jspPane
|
||||
{
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.jspVerticalBar
|
||||
{
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 16px;
|
||||
height: 100%;
|
||||
background: red;
|
||||
}
|
||||
|
||||
.jspHorizontalBar
|
||||
{
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 16px;
|
||||
background: red;
|
||||
}
|
||||
|
||||
.jspVerticalBar *,
|
||||
.jspHorizontalBar *
|
||||
{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.jspCap
|
||||
{
|
||||
display: none;
|
||||
}
|
||||
|
||||
.jspHorizontalBar .jspCap
|
||||
{
|
||||
float: left;
|
||||
}
|
||||
|
||||
.jspTrack
|
||||
{
|
||||
background: #dde;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.jspDrag
|
||||
{
|
||||
background: #bbd;
|
||||
position: relative;
|
||||
top: 0;
|
||||
left: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.jspHorizontalBar .jspTrack,
|
||||
.jspHorizontalBar .jspDrag
|
||||
{
|
||||
float: left;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.jspArrow
|
||||
{
|
||||
background: #50506d;
|
||||
text-indent: -20000px;
|
||||
display: block;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.jspArrow.jspDisabled
|
||||
{
|
||||
cursor: default;
|
||||
background: #80808d;
|
||||
}
|
||||
|
||||
.jspVerticalBar .jspArrow
|
||||
{
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.jspHorizontalBar .jspArrow
|
||||
{
|
||||
width: 16px;
|
||||
float: left;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.jspVerticalBar .jspArrow:focus
|
||||
{
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.jspCorner
|
||||
{
|
||||
background: #eeeef4;
|
||||
float: left;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* Yuk! CSS Hack for IE6 3 pixel bug :( */
|
||||
* html .jspCorner
|
||||
{
|
||||
margin: 0 -3px 0 0;
|
||||
}
|
File diff suppressed because one or more lines are too long
|
@ -181,13 +181,11 @@
|
|||
|
||||
this.filterResults = response;
|
||||
|
||||
$('#filter-categories .results').data('jsp').destroy();
|
||||
$('#filter-categories .results').html('');
|
||||
$.each(response, function(index, category) {
|
||||
var html = this.getFilterHtml(category);
|
||||
$('#filter-categories .results').append(html);
|
||||
}.bind(this));
|
||||
$('#filter-categories .results').jScrollPane({ mouseWheelSpeed: 70 });
|
||||
|
||||
if (response.length === 0) {
|
||||
$('#filter-categories .results').html('<em>' + EALang.no_records_found + '</em>');
|
||||
|
|
|
@ -46,9 +46,6 @@
|
|||
helper.resetForm();
|
||||
helper.filter('');
|
||||
|
||||
$('#filter-customers .results').jScrollPane();
|
||||
$('#customer-appointments').jScrollPane();
|
||||
|
||||
if (defaultEventHandlers) {
|
||||
_bindEventHandlers();
|
||||
}
|
||||
|
|
|
@ -315,7 +315,6 @@
|
|||
$('#zip-code').val(customer.zip_code);
|
||||
$('#notes').val(customer.notes);
|
||||
|
||||
$('#customer-appointments').data('jsp').destroy();
|
||||
$('#customer-appointments').empty();
|
||||
$.each(customer.appointments, function(index, appointment) {
|
||||
var start = GeneralFunctions.formatDate(Date.parse(appointment.start_datetime), GlobalVariables.dateFormat, true);
|
||||
|
@ -328,7 +327,6 @@
|
|||
'</div>';
|
||||
$('#customer-appointments').append(html);
|
||||
});
|
||||
$('#customer-appointments').jScrollPane({ mouseWheelSpeed: 70 });
|
||||
|
||||
$('#appointment-details').empty();
|
||||
};
|
||||
|
@ -357,14 +355,11 @@
|
|||
|
||||
this.filterResults = response;
|
||||
|
||||
$('#filter-customers .results').data('jsp').destroy();
|
||||
$('#filter-customers .results').html('');
|
||||
$.each(response, function(index, customer) {
|
||||
var html = this.getFilterHtml(customer);
|
||||
$('#filter-customers .results').append(html);
|
||||
}.bind(this));
|
||||
$('#filter-customers .results').jScrollPane({ mouseWheelSpeed: 70 });
|
||||
|
||||
if (response.length == 0) {
|
||||
$('#filter-customers .results').html('<em>' + EALang.no_records_found + '</em>');
|
||||
}
|
||||
|
|
|
@ -57,9 +57,6 @@ window.BackendServices = window.BackendServices || {};
|
|||
helper.resetForm();
|
||||
helper.filter('');
|
||||
|
||||
$('#filter-services .results').jScrollPane();
|
||||
$('#filter-categories .results').jScrollPane();
|
||||
|
||||
if (bindEventHandlers) {
|
||||
_bindEventHandlers();
|
||||
}
|
||||
|
|
|
@ -322,13 +322,11 @@
|
|||
|
||||
this.filterResults = response;
|
||||
|
||||
$('#filter-services .results').data('jsp').destroy();
|
||||
$('#filter-services .results').html('');
|
||||
$.each(response, function(index, service) {
|
||||
var html = ServicesHelper.prototype.getFilterHtml(service);
|
||||
$('#filter-services .results').append(html);
|
||||
});
|
||||
$('#filter-services .results').jScrollPane({ mouseWheelSpeed: 70 });
|
||||
|
||||
if (response.length === 0) {
|
||||
$('#filter-services .results').html('<em>' + EALang.no_records_found + '</em>');
|
||||
|
|
|
@ -52,11 +52,6 @@ window.BackendUsers = window.BackendUsers || {};
|
|||
exports.initialize = function(defaultEventHandlers) {
|
||||
defaultEventHandlers = defaultEventHandlers || true;
|
||||
|
||||
// Initialize jScrollPane Scrollbars
|
||||
$('#filter-admins .results').jScrollPane();
|
||||
$('#filter-providers .results').jScrollPane();
|
||||
$('#filter-secretaries .results').jScrollPane();
|
||||
|
||||
// Instantiate default helper object (admin).
|
||||
helper = new AdminsHelper();
|
||||
helper.resetForm();
|
||||
|
@ -80,7 +75,6 @@ window.BackendUsers = window.BackendUsers || {};
|
|||
});
|
||||
html += '</div>';
|
||||
$('#provider-services').html(html);
|
||||
$('#provider-services').jScrollPane({ mouseWheelSpeed: 70 });
|
||||
|
||||
html = '<div class="col-xs-12">';
|
||||
$.each(GlobalVariables.providers, function(index, provider) {
|
||||
|
@ -95,7 +89,6 @@ window.BackendUsers = window.BackendUsers || {};
|
|||
});
|
||||
html += '</div>';
|
||||
$('#secretary-providers').html(html);
|
||||
$('#secretary-providers').jScrollPane({ mouseWheelSpeed: 70 });
|
||||
|
||||
$('#reset-working-plan').qtip({
|
||||
position: {
|
||||
|
@ -127,8 +120,6 @@ window.BackendUsers = window.BackendUsers || {};
|
|||
if ($(this).attr('href') === '#admins') {
|
||||
helper = new AdminsHelper();
|
||||
} else if ($(this).attr('href') === '#providers') {
|
||||
$('#provider-services').data('jsp').destroy();
|
||||
$('#provider-services').jScrollPane({ mouseWheelSpeed: 70 });
|
||||
helper = new ProvidersHelper();
|
||||
} else if ($(this).attr('href') === '#secretaries') {
|
||||
helper = new SecretariesHelper();
|
||||
|
@ -146,8 +137,6 @@ window.BackendUsers = window.BackendUsers || {};
|
|||
|
||||
GlobalVariables.providers = response;
|
||||
|
||||
$('#secretary-providers').data('jsp').destroy();
|
||||
|
||||
var html = '<div class="col-xs-12">';
|
||||
$.each(GlobalVariables.providers, function(index, provider) {
|
||||
html +=
|
||||
|
@ -161,7 +150,6 @@ window.BackendUsers = window.BackendUsers || {};
|
|||
html += '</div>';
|
||||
$('#secretary-providers').html(html);
|
||||
$('#secretary-providers input:checkbox').prop('disabled', true);
|
||||
$('#secretary-providers').jScrollPane({ mouseWheelSpeed: 70 });
|
||||
}, 'json').fail(GeneralFunctions.ajaxFailureHandler);
|
||||
}
|
||||
|
||||
|
|
|
@ -360,13 +360,11 @@
|
|||
|
||||
this.filterResults = response;
|
||||
|
||||
$('#filter-admins .results').data('jsp').destroy();
|
||||
$('#filter-admins .results').html('');
|
||||
$.each(response, function(index, admin) {
|
||||
var html = this.getFilterHtml(admin);
|
||||
$('#filter-admins .results').append(html);
|
||||
}.bind(this));
|
||||
$('#filter-admins .results').jScrollPane({ mouseWheelSpeed: 70 });
|
||||
|
||||
if (response.length == 0) {
|
||||
$('#filter-admins .results').html('<em>' + EALang.no_records_found + '</em>')
|
||||
|
|
|
@ -451,13 +451,11 @@
|
|||
|
||||
this.filterResults = response;
|
||||
|
||||
$('#filter-providers .results').data('jsp').destroy();
|
||||
$('#filter-providers .results').html('');
|
||||
$.each(response, function(index, provider) {
|
||||
var html = this.getFilterHtml(provider);
|
||||
$('#filter-providers .results').append(html);
|
||||
}.bind(this));
|
||||
$('#filter-providers .results').jScrollPane({ mouseWheelSpeed: 70 });
|
||||
|
||||
if (response.length == 0) {
|
||||
$('#filter-providers .results').html('<em>' + EALang.no_records_found + '</em>')
|
||||
|
|
|
@ -383,13 +383,11 @@
|
|||
|
||||
this.filterResults = response;
|
||||
|
||||
$('#filter-secretaries .results').data('jsp').destroy();
|
||||
$('#filter-secretaries .results').html('');
|
||||
$.each(response, function(index, secretary) {
|
||||
var html = this.getFilterHtml(secretary);
|
||||
$('#filter-secretaries .results').append(html);
|
||||
}.bind(this));
|
||||
$('#filter-secretaries .results').jScrollPane({ mouseWheelSpeed: 70 });
|
||||
|
||||
if (response.length == 0) {
|
||||
$('#filter-secretaries .results').html('<em>' + EALang.no_records_found + '</em>')
|
||||
|
|
Loading…
Reference in a new issue