_settings.js 711 B

12345678910111213141516171819202122
  1. // Constants
  2. App.Constants.IP_FORM_ID = 'ip-form';
  3. App.Constants.DNS_FORM_ID = 'dns-form';
  4. App.Settings.ajax_url = 1;
  5. App.Settings.uri = location.href.replace('index.html', '');
  6. App.Settings.popup_conf = { 'centered' : true, 'bgcolor' : '#FF0000', 'lightboxSpeed' : 'fast', 'destroyOnClose': true };
  7. App.Constants.SUSPENDED_YES = 'yes';
  8. App.Constants.IP = 'IP';
  9. App.Constants.DNS = 'DNS';
  10. App.Constants.DNS_TEMPLATES = {'default': 'Default'};
  11. App.Messages.total_dns_records = {single: 'total record', plural: 'total records'};
  12. App.Messages.get = function(key, plural) {
  13. if ('undefined' != typeof App.Messages[key]) {
  14. return plural ? App.Messages[key].plural : App.Messages[key].single;
  15. }
  16. }