Merge remote-tracking branch 'origin/dev' into dev
# Conflicts: # cms/js/neocms.js # cms/settings/index.php
This commit is contained in:
@@ -10,7 +10,6 @@ $(function () {
|
||||
});
|
||||
$(window).bind('resize', windowResize);
|
||||
$('#neoCMSLoginForm').bind('submit', loginSubmit);
|
||||
$('#forgotPass').bind('click', forgotShow);
|
||||
$('#neoCMSUsername input').focus();
|
||||
$('#neoCMSHome').bind('click', function () {
|
||||
checkURL(fpath())
|
||||
@@ -70,29 +69,6 @@ loginIncorr = function (message) {
|
||||
$('#neoCMSEnter p.error').html(message).css('display', 'block');
|
||||
$('#neoCMSLoginIframe').remove()
|
||||
};
|
||||
forgotShow = function () {
|
||||
$('#neoCMSLoginForm').attr({action: 'core/forgotpassword.php'}).find('p.error').css('display', 'none');
|
||||
$('#forgot').css({opacity: '0', display: 'block'}).fadeTo(300, 1.0, function () {
|
||||
$('#forgotCancel').unbind('click').bind('click', forgotHide);
|
||||
$('#neoCMSPassword').remove()
|
||||
})
|
||||
};
|
||||
forgotHide = function () {
|
||||
$('#neoCMSLoginForm').attr({action: 'core/forgotpassword.php'}).find('p.error').css('display', 'none');
|
||||
$('<li/>').attr('id', 'neoCMSPassword').html('<br/>').prepend($('<label/>').html('Password')).append($('<input/>').addClass("neoCMSInput").attr({
|
||||
name: "neoCMSPassword",
|
||||
type: "password",
|
||||
tabindex: "2"
|
||||
})).append($('<p/>').addClass('error').html('Required')).insertAfter('#neoCMSUsername');
|
||||
$('#forgot').css('display', 'none');
|
||||
$('#neoCMSLoginForm').attr({action: 'core/login.php'});
|
||||
$('#forgot p.message').html('').css({display: 'none'})
|
||||
};
|
||||
forgotReset = function (message) {
|
||||
var c = (message.match(/domain/gi)) ? '#666' : '#fff';
|
||||
$('#forgot p.message').html(message).css({color: c, display: 'block'});
|
||||
$('#neoCMSLoginIframe').remove()
|
||||
};
|
||||
windowResize = function () {
|
||||
if ($('.neoCMSIcon, .neoCMSRepIcon', ifrDoc).length) destroyIcons();
|
||||
if ($('#overlay').length) $('#overlay').css({width: $(window).width(), height: $(window).height()});
|
||||
|
||||
Reference in New Issue
Block a user