SLL certificates upload implementation step #1

This commit is contained in:
Dima Malishev 2011-09-10 22:35:16 +03:00
parent 994b0cfa14
commit 373c5f25b2
10 changed files with 52 additions and 171 deletions

View file

@ -58,5 +58,23 @@ App.Pages.USER.new_entry = function(evt)
var tpl = App.HTML.Build[build_method]({}, form_id);
App.Ref.CONTENT.prepend(tpl);
App.Helpers.updateScreen();
$('#'+form_id).find('.ns-entry, .additional-ns-add').addClass('hidden');
$('#'+form_id).find('.ns-entry, .additional-ns-add').addClass('hidden');
}
App.Pages.WEB_DOMAIN.new_entry = function(evt)
{
var form_id = App.Constants[App.Env.world + '_FORM_ID'];
$('#'+form_id).remove();
var build_method = App.Env.getWorldName() + '_form';
var tpl = App.HTML.Build[build_method]({}, form_id);
App.Ref.CONTENT.prepend(tpl);
App.Helpers.updateScreen();
$('#'+form_id).find('.ns-entry, .additional-ns-add').addClass('hidden');
var ssl_key_upload = App.HTML.Build.ssl_key_file();
$('#'+form_id).find('.ssl-key-input-dummy:first').replaceWith(ssl_key_upload);
}
App.Pages.WEB_DOMAIN.setSSL = function(content, type)
{
fb.warn(content);
}