code
stringlengths
1
2.08M
language
stringclasses
1 value
(function($) { $(function() { $('div.wpcf7 > form').ajaxForm({ beforeSubmit: function(formData, jqForm, options) { var re = true; var obj = jqForm.find('.your-name input'); if (obj.val().trim() === '') { obj.addClass('w...
JavaScript
jQuery(document).ready(function($) { "use strict"; // Tabs //When page loads... $('.tabs-wrapper').each(function() { $(this).find(".tab_content").hide(); //Hide all content $(this).find("ul.tabs li:first").addClass("active").show(); //Activate first tab $(this).find(".tab_content:first").show(); ...
JavaScript
function remove_unicode(str) { str = str.toLowerCase(); str = str.replace(/à|á|ạ|ả|ã|â|ầ|ấ|ậ|ẩ|ẫ|ă|ằ|ắ|ặ|ẳ|ẵ/g, "a"); str = str.replace(/è|é|ẹ|ẻ|ẽ|ê|ề|ế|ệ|ể|ễ/g, "e"); str = str.replace(/ì|í|ị|ỉ|ĩ/g, "i"); str = str.replace(/ò|ó|ọ|ỏ|õ|ô|ồ|ố|ộ|ổ|ỗ|ơ|ờ|ớ|ợ|ở|ỡ/g, "o"); str = str.replace(/ù|ú...
JavaScript
(function($) { $(function() { $('.subscription-form').submit(function() { var emailSub = $(this).find('.email').val(); if (!validateEmail(emailSub)) { $('.subscription-form .status').addClass('error'); $('.subscription-form .submit').addClass('...
JavaScript
/********************************************************************************** Project Name: SimpleAdmin CMS Theme Project Description: A clean admin theme File Name: script.js Author: Adi Purdila Author URI: http://www.adipurdila.com Version: 1.0.0 ********************************************************...
JavaScript
function openNotify(e) { if (e) { $('.notify-container div').removeClass('error-box'); $('.notify-container div').addClass('confirmation-box'); } else { $('.notify-container div').addClass('error-box'); $('.notify-container div').removeClass('confirmation-box'); } setTime...
JavaScript
$(document).ready(function() { var msg = getURLParameter('msg'); if (msg === 'delete-success') { $('.notify-container > div').html('Xóa thành công!'); openNotify(true); } else if (msg === 'update-success') { $('.notify-container > div').html('Thành công!'); openNotify(true); ...
JavaScript
/** * Unicorn Admin Template * Version 2.0.1 * Diablo9983 -> diablo9983@gmail.com **/ $(document).ready(function(){ // === Prepare the chart data ===/ var sin = [], cos = []; for (var i = 0; i < 14; i += 0.5) { sin.push([i, Math.sin(i)]); cos.push([i, Math.cos(i)]); } // === Make cha...
JavaScript
/** * Unicorn Admin Template * Version 2.0.1 * Diablo9983 -> diablo9983@gmail.com **/ $(document).ready(function(){ $('.data-table').dataTable({ "bJQueryUI": true, "sPaginationType": "full_numbers", "sDom": '<""l>t<"F"fp>' }); var checkboxClass = 'icheckbox_flat-blue'; var radioClass = 'iradio_flat-bl...
JavaScript
/** * * jPanelMenu 1.3.0 (http://jpanelmenu.com) * By Anthony Colangelo (http://acolangelo.com) * * */ (function($){ $.jPanelMenu = function(options) { if ( typeof(options) == "undefined" || options == null ) { options = {}; }; var jP = { options: $.extend({ menu: '#menu', trigger: '.menu-trig...
JavaScript
/*! * Masonry v3.1.0 * Cascading grid layout library * http://masonry.desandro.com * MIT License * by David DeSandro */ ( function( window ) { 'use strict'; // vars // var document = window.document; // -------------------------- helpers -------------------------- // var indexOf = Array.prototype.indexOf ? ...
JavaScript
// Copyright 2006 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wr...
JavaScript
/* Copyright 2012 Igor Vaynberg Version: 3.4.1 Timestamp: Thu Jun 27 18:02:10 PDT 2013 This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU General Public License version 2 (the "GPL License"). You may choose either license to govern your use of this software only upon th...
JavaScript
/** * Unicorn Admin Template * Version 2.0.1 * Diablo9983 -> diablo9983@gmail.com **/ $(document).ready(function(){ $('select').select2(); function format(state) { var originalOption = state.element; if (!state.id) return state.text; // optgroup return "<img class='game_keyins' src='"+base_url+"template/i...
JavaScript
/*! * iCheck v0.9.1, http://git.io/uhUPMA * ================================= * Powerful jQuery plugin for checkboxes and radio buttons customization * * (c) 2013 Damir Foy, http://damirfoy.com * MIT Licensed */ (function($) { // Cached vars var _iCheck = 'iCheck', _iCheckHelper = _iCheck + '-helper', ...
JavaScript
/** * Simple Ajax Uploader * Version 1.10.1 * https://github.com/LPology/Simple-Ajax-Uploader * * Copyright 2012-2013 LPology, LLC * Released under the MIT license */ ;(function( window, document, undefined ) { var ss = window.ss || {}, // Pre-compile and cache regular expressions // (except for JSON re...
JavaScript
/* Flot plugin for automatically redrawing plots when the placeholder size changes, e.g. on window resizes. It works by listening for changes on the placeholder div (through the jQuery resize event plugin) - if the size changes, it will redraw the plot. There are no options. If you need to disable the plugin for some...
JavaScript
/** * Unicorn Admin Template * Version 2.0.1 * Diablo9983 -> diablo9983@gmail.com **/ $(document).ready(function(){ $('input[type=checkbox],input[type=radio]').iCheck({ checkboxClass: 'icheckbox_flat-blue', radioClass: 'iradio_flat-blue' }); $('select').select2(); // Form Validation $("#basi...
JavaScript
/** * Unicorn Admin Template * Version 2.0.1 * Diablo9983 -> diablo9983@gmail.com **/ $(document).ready(function(){ // === jQuery Peity === // /*$.fn.peity.defaults.line = { strokeWidth: 1, delimeter: ",", height: 24, max: null, min: 0, width: 50 }; $.fn.peity.defaults.bar = { delimeter: ",", ...
JavaScript
/* Flot plugin for rendering pie charts. The plugin assumes the data is coming is as a single data value for each series, and each of those values is a positive value or zero (negative numbers don't make any sense and will cause strange effects). The data values do NOT need to be passed in as percentage values beca...
JavaScript
/** * Unicorn Admin Template * Version 2.0.1 * Diablo9983 -> diablo9983@gmail.com **/ $(document).ready(function(){ // === Prepare sparklines charts === // unicorn.sparkline(); // === Prepare the chart data ===/ var sin = [], cos = []; for (var i = 0; i < 14; i += 0.5) { sin.push([i, Math.si...
JavaScript
// Peity jQuery plugin version 1.2.0 // (c) 2013 Ben Pickles // // http://benpickles.github.com/peity // // Released under MIT license. (function($, document, Math, devicePixelRatio) { var canvasSupported = document.createElement("canvas").getContext var peity = $.fn.peity = function(type, options) { if (canva...
JavaScript
/** * Unicorn Admin Template * Version 2.0.1 * Diablo9983 -> diablo9983@gmail.com **/ $(document).ready(function(){ unicorn.init(); $('#add-event-submit').click(function(e){ unicorn.add_event(); }); $('#event-name').keypress(function(e){ if(e.which == 13) { unicorn.add_event(); } }); }); unic...
JavaScript
/** * Unicorn Admin Template * Version 2.0.1 * Diablo9983 -> diablo9983@gmail.com **/ $(document).ready(function(){ $('input[type=checkbox],input[type=radio]').iCheck({ checkboxClass: 'icheckbox_flat-blue', radioClass: 'iradio_flat-blue' }); $("#form-wizard").formwizard({ formPluginEnabled: true,...
JavaScript
/*! Javascript plotting library for jQuery, v. 0.7. * * Released under the MIT license by IOLA, December 2007. * */ // first an inline dependency, jquery.colorhelpers.js, we inline it here // for convenience /* Plugin for jQuery for working with colors. * * Version 1.1. * * Inspiration from jQuery color ani...
JavaScript
/** * Unicorn Admin Template * Version 2.0.1 * Diablo9983 -> diablo9983@gmail.com **/ $(document).ready(function(){ var login = $('#loginform'); var recover = $('#recoverform'); var register = $('#registerform'); var login_recover = $('#loginform, #recoverform'); var login_register = $('#loginform, #...
JavaScript
/** * * jquery.sparkline.js * * v2.1.2 * (c) Splunk, Inc * Contact: Gareth Watts (gareth@splunk.com) * http://omnipotent.net/jquery.sparkline/ * * Generates inline sparkline charts from data supplied either to the method * or inline in HTML * * Compatible with Internet Explorer 6.0+ and modern browsers equipped with th...
JavaScript
/** * @license jQuery wizard plug-in 3.0.7 (18-SEPT-2012) * * * Copyright (c) 2012 Jan Sundman (jan.sundman[at]aland.net) * * http://www.thecodemine.org * * Licensed under the MIT licens: * http://www.opensource.org/licenses/mit-license.php * */ (function($){ $.widget("ui.formwizard", { _init: functi...
JavaScript
/* * Gritter for jQuery * http://www.boedesign.com/ * * Copyright (c) 2012 Jordan Boesch * Dual licensed under the MIT and GPL licenses. * * Date: February 24, 2012 * Version: 1.7.4 */ (function($){ /** * Set it up as an object under the jQuery namespace */ $.gritter = {}; /** * Set up global optio...
JavaScript
/** * Unicorn Admin Template * Version 2.0.1 * Diablo9983 -> diablo9983@gmail.com **/ $(document).ready(function(){ var msg_template = '<p><span class="msg-block"><strong></strong><span class="time"></span><span class="msg"></span></span></p>'; $('.chat-message button').click(function(){ var input = $(this)...
JavaScript
/*! * Nestable jQuery Plugin - Copyright (c) 2012 David Bushell - http://dbushell.com/ * Dual-licensed under the BSD or MIT licenses */ ;(function($, window, document, undefined) { var hasTouch = 'ontouchstart' in window; /** * Detect CSS pointer-events property * events are normally disabled on t...
JavaScript
/*! * FullCalendar v1.6.3 * Docs & License: http://arshaw.com/fullcalendar/ * (c) 2013 Adam Shaw */ /* * Use fullcalendar.css for basic styling. * For event drag & drop, requires jQuery UI draggable. * For event resizing, requires jQuery UI resizable. */ (function($, undefined) { ;; var defaults = { // ...
JavaScript
/** * Unicorn Admin Template * Version 2.0.1 * Diablo9983 -> diablo9983@gmail.com **/ $(document).ready(function(){ var ul = $('#sidebar > ul'); var ul2 = $('#sidebar li.open ul'); // === jPanelMenu === // var jPM = $.jPanelMenu({ menu: '#sidebar', trigger: '#menu-trigger' }); // === Resize wind...
JavaScript
/** * Version 2.1 * -Contributors: "mindinquiring" : filter to exclude any stylesheet other than print. * Tested ONLY in IE 8 and FF 3.6. No official support for other browsers, but will * TRY to accomodate challenges in other browsers. * Example: * Print Button: <div id="print_button">Pri...
JavaScript
/* // borkweb's crazy talk var $root = jQuery(document); $root.delegate('div.postloop.container label', 'click', function(){ jQuery(this).parent().children('div').slideToggle('fast'); }); jQuery('.postloop .open-if-value').parent().parent().slideDown('fast'); jQuery('.postloop .open-if-value').each( function() { v...
JavaScript
/** -------------------------------------------------------------------------- * jQuery URL Decoder * Version 1.0 * Parses URL and return its components. Can also build URL from components * * --------------------------------------------------------------------------- * HOW TO USE: * * $.url.decode('http://use...
JavaScript
/** * @license * jQuery Tools @VERSION Scrollable - New wave UI design * * NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE. * * http://flowplayer.org/tools/scrollable.html * * Since: March 2008 * Date: @DATE */ (function($) { // static constructs $.tools = $.tools || {version: '@VERSION'}; $.tools.scro...
JavaScript
/** * @license * jQuery Tools @VERSION / Scrollable Navigator * * NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE. * * http://flowplayer.org/tools/scrollable/navigator.html * * Since: September 2009 * Date: @DATE */ (function($) { var t = $.tools.scrollable; t.navigator = { conf: { navi: '.navi...
JavaScript
/*! jQuery Waypoints - v1.1.1 Copyright (c) 2011 Caleb Troughton Dual licensed under the MIT license and GPL license. https://github.com/imakewebthings/jquery-waypoints/blob/master/MIT-license.txt https://github.com/imakewebthings/jquery-waypoints/blob/master/GPL-license.txt */ /* Waypoints is a small jQuery ...
JavaScript
/** * @license * jQuery Tools @VERSION / Scrollable Autoscroll * * NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE. * * http://flowplayer.org/tools/scrollable/autoscroll.html * * Since: September 2009 * Date: @DATE */ (function($) { var t = $.tools.scrollable; t.autoscroll = { conf: { autoplay...
JavaScript
/** * jQuery MD5 hash algorithm function * * <code> * Calculate the md5 hash of a String * String $.md5 ( String str ) * </code> * * Calculates the MD5 hash of str using the » RSA Data Security, Inc. MD5 Message-Digest Algorithm, and returns that hash. * MD5 (Message-Digest algorithm 5) i...
JavaScript
jQuery(function(){ jQuery('.row select').change(function(){ var el = jQuery(this); var grid = parseInt(el.val()); var row = el.parents('.row'); var total_slots = 0; var max_slots = ninespot_max_slots; var hide_the_rest = false; jQuery('select', row).each(function(i){ var select_box = jQ...
JavaScript
var dq = document.getElementById('disqus_thread'); var sbd = document.getElementById('sbd'); var dialogstate = 'brstt'; if(sbd) { var ww = window.innerWidth; var wr = document.getElementById('wrap').offsetWidth; var wf = ww - wr; sbd.style.left = (wf/2)-100 + 'px'; } function abd(e) { console.log('true'); for(i=...
JavaScript
if(typeof Object.create!=="function"){ Object.create=function(o){ function F(){ }; F.prototype=o; return new F(); }; } var ua={toString:function(){ return navigator.userAgent; },test:function(s){ return this.toString().toLowerCase().indexOf(s.toLowerCase())>-1; }}; ua.version=(ua.toString().toLowerCase().match(/[\s\S]+...
JavaScript
function addPhoneNumber() { var newContent = document.createElement("div"); newContent.innerHTML = document.getElementById("phoneLine").innerHTML; document.getElementById("phones").appendChild(newContent); } function showDivSearch(name) { $(".searchMV").hide(500); $("#" + name).show(500); } function showDivResul...
JavaScript
Ext.define('Duplicati.model.TaskItems.EncryptionSettings', { extend: 'Ext.data.Model' });
JavaScript
Ext.define('Duplicati.model.TaskItems.CompressionSettings', { extend: 'Ext.data.Model' });
JavaScript
Ext.define('Duplicati.model.TaskItems.BackendSettings', { extend: 'Ext.data.Model', fields: [ { name: 'UI_Checked_empty' }, { name: 'Destination' }, { name: 'Username' }, { name: 'Password' ...
JavaScript
Ext.define('Duplicati.model.TaskItems.Extensions', { extend: 'Ext.data.Model', fields: [ { name: 'UploadBandwidth', mapping: "Upload Bandwidth" }, { name: 'DownloadBandwidth', mapping: 'Download Bandwidth' }, { ...
JavaScript
Ext.define('Duplicati.model.TaskItems.BackupLocation', { extend: 'Ext.data.Model', fields: [ { name: 'Location', type: 'string' }, { name: 'TotalSize', type: 'float' } ] });
JavaScript
Ext.define('Duplicati.model.TaskItems.Overrides', { extend: 'Ext.data.Model' });
JavaScript
Ext.define('Duplicati.model.override.BackupJob', { requires: 'Duplicati.model.BackupJob' }, function() { Ext.override(Duplicati.model.BackupJob, { setValues: function(values, arrayField) { var me = this; function setVal(fieldId, val) { if (a...
JavaScript
Ext.define('Duplicati.model.BackupJob', { extend: 'Ext.data.Model', uses: [ 'Duplicati.model.Task', 'Duplicati.model.Schedule' ], proxy: { type: 'ajax', url: '/control.cgi?action=get-schedule-details', reader: { type: 'json', i...
JavaScript
Ext.define('Duplicati.model.ScheduleItems.Metadata', { extend: 'Ext.data.Model', fields: [ { name: 'total_size', mapping: 'total-size' }, { name: 'full_backup_count' }, { name: 'total_volume_count' }, ...
JavaScript
Ext.define('Duplicati.model.Schedule', { extend: 'Ext.data.Model', associations: [{ name: 'task', type: 'hasOne', model: 'Duplicati.model.Task', primaryKey: 'ID', foreignKey: 'ScheduleID' }], fields: [ { name: 'NextScheduledTime' ...
JavaScript
Ext.define('Duplicati.model.Task', { extend: 'Ext.data.Model', uses: [ 'Duplicati.model.TaskItems.BackendSettings', 'Duplicati.model.TaskItems.Extensions', 'Duplicati.model.TaskItems.Overrides', 'Duplicati.model.TaskItems.EncryptionSettings', 'Duplicati.model.TaskI...
JavaScript
Ext.define('Duplicati.ListUtility', { statics: { currentScheduleId: null, showContextMenu: function(id, el) { var lst = Ext.getCmp('status-window-schedule-list'); var mnu = lst.elementContextMenu; this.currentScheduleId = id; var elx = Ext.get(el); mnu.showBy(elx, 'tr-br?'); }, ...
JavaScript
Ext.define('Duplicati.controller.BackupConfig', { extend: 'Ext.app.Controller', onBtnGeneratePasswordClick: function(button, e, options) { var text = ""; var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-.,_:;+#?=)(/&%$§"; for( var i=0; i < 16; i++ ) ...
JavaScript
Ext.define('Duplicati.controller.StatuswindowHeader', { extend: 'Ext.app.Controller', views: [ 'StatuswindowHeader' ], refs: [{ selector: '#status-window-header-pause-button', ref: 'pauseButton' }, { selector: '#status-window-header-pause-menu', ref: 'pauseMenu' }], init: function() {...
JavaScript
Ext.define('Duplicati.controller.StatuswindowFooter', { extend: 'Ext.app.Controller', views: [ 'StatuswindowFooter' ], init: function() { this.control({ 'viewport > panel': { render: this.onPanelRendered } }); }, onPanelRendered: fun...
JavaScript
Ext.define('Duplicati.controller.Schedules', { extend: 'Ext.app.Controller', stores: [ 'Schedules' ], views: [ 'schedule.List' ], refs: [{ selector: 'viewport > panel', ref: 'basicPanel' }], lastEventID: -1, init: function() { this.control({ 'viewport > panel': { ...
JavaScript
Ext.define('Duplicati.Service', { requires: [ 'Duplicati.CountDownHelper' ], mixins: { observable: 'Ext.util.Observable' }, controlUrl: '/control.cgi', pauseCountDownHelper: null, lostConnectionCountDownHelper: null, updateRequestParams: { action: 'get-current-state', longpo...
JavaScript
Ext.define('Duplicati.view.override.BackupConfig', { requires: 'Duplicati.view.BackupConfig' }, function() { Ext.override(Duplicati.view.BackupConfig, { setFieldValue: function(fieldId, val) { var field = this.getForm().findField(fieldId); if (field) { field....
JavaScript
Ext.define('Duplicati.view.wndAddFilter', { extend: 'Ext.window.Window', height: 342, width: 550, title: 'Add Filter', initComponent: function() { var me = this; me.callParent(arguments); } });
JavaScript
Ext.define('Duplicati.view.wndAddLocation', { extend: 'Ext.window.Window', height: 539, id: 'winAddLocation', width: 349, title: 'Add Location', modal: true, initComponent: function() { var me = this; Ext.applyIf(me, { items: [ { ...
JavaScript
Ext.define('Duplicati.view.AboutWindow', { statics: { dialogWindow: null, show: function() { if (this.dialogWindow == null) this.dialogWindow = Ext.create('Ext.window.Window', { title: 'About Duplicati', height: 200, width: 400, modal: true, resizable: false...
JavaScript
Ext.define('Duplicati.view.BackupConfig', { extend: 'Ext.form.Panel', xtype: 'backupconfigpanel', draggable: false, floating: false, frame: false, height: 550, width: 698, autoScroll: false, resizable: false, layout: { type: 'absolute' }, bodyBorder: ...
JavaScript
Ext.define('Duplicati.view.schedule.List' ,{ extend: 'Ext.grid.Panel', alias : 'widget.schedulelist', title : 'All Schedules', header: false, border: 0, id: 'status-window-schedule-list', hideHeaders: true, selType: 'rowmodel', store: 'Schedules', elementTemplateStr: '<span class...
JavaScript
Ext.define('Duplicati.view.wndCreateConnection', { extend: 'Ext.window.Window', height: 342, id: 'wndCreateConnection', width: 418, title: 'Create Connection', titleCollapse: false, initComponent: function() { var me = this; me.callParent(arguments); } ...
JavaScript
Ext.define('Duplicati.view.StatuswindowHeader' ,{ extend: 'Ext.panel.Panel', alias : 'widget.statuswindowheader', title : 'Main App controls', header: false, border: 0, layout: 'column', cls: 'header-panel', items: [{ xtype: 'button', cls: 'main-button', text: 'Duplicati', ico...
JavaScript
Ext.define('Duplicati.view.StatuswindowFooter' ,{ extend: 'Ext.panel.Panel', alias : 'widget.statuswindowfooter', title : 'Status line', header: false, border: 0, layout: 'column', cls: 'footer-panel', items: [{ xtype: 'label', html: 'A <a href="http://www.duplicati.com/news/duplicati13...
JavaScript
Ext.define('Duplicati.view.LostConnectionWindow', { statics: { dialogWindow: null, setStatusAsRunning: function() { if (this.dialogWindow != null) { var txt = this.dialogWindow.queryById('status-window-lost-connection-text'); var btn = this.dialogWindow.queryById('status-window-lost-connection-ret...
JavaScript
Ext.define('Duplicati.Utility', { statics: { strings: { terabyteShort: 'TB', gigabyteShort: 'GB', megabyteShort: 'MB', kilobyteShort: 'KB', bytesShort: 'bytes', prefixAgo: null, prefixFromNow: "in", suffixAgo: "ago", suffixFromNow: null, seconds: "less than a minute", ...
JavaScript
Ext.define('Duplicati.CountDownHelper', { mixins: { observable: 'Ext.util.Observable' }, statics: { callbackkeycounter: 0, callbacklookup: {}, callbackhelper: function(id) { this.callbacklookup["" + id].onCallback(); } }, expireTime: null, intervalId : null, construct...
JavaScript
Ext.define('Duplicati.store.DefaultTimeRangesStore', { extend: 'Ext.data.Store', constructor: function(cfg) { var me = this; cfg = cfg || {}; me.callParent([Ext.apply({ storeId: 'DefaultTimeRangesStore', data: [ {key: 's', value: 'Seconds'}, ...
JavaScript
Ext.define('Duplicati.store.MyComputerTreeStore', { extend: 'Ext.data.TreeStore', constructor: function(cfg) { cfg = cfg || {}; this.callParent([Ext.apply({ autoLoad: true, filterOnLoad: false, sortOnLoad: false, storeId: 'MyComputerTreeS...
JavaScript
Ext.define('Duplicati.store.BackupJob', { extend: 'Ext.data.Store', requires: [ 'Duplicati.model.BackupJob' ], constructor: function(cfg) { var me = this; cfg = cfg || {}; me.callParent([Ext.apply({ storeId: 'MyJsonStore', model: 'Dupli...
JavaScript
Ext.define('Duplicati.store.DeleteOldChainsWhenStore', { extend: 'Ext.data.Store', constructor: function(cfg) { var me = this; cfg = cfg || {}; me.callParent([Ext.apply({ storeId: 'DeleteOldChainsWhenStore', data: [ {key: '0', value: 'When there a...
JavaScript
Ext.define('Duplicati.store.EncryptionMethodStore', { extend: 'Ext.data.Store', constructor: function(cfg) { var me = this; cfg = cfg || {}; me.callParent([Ext.apply({ autoLoad: true, filterOnLoad: false, sortOnLoad: false, store...
JavaScript
Ext.define('Duplicati.store.DefaultSizeRangeStore', { extend: 'Ext.data.Store', constructor: function(cfg) { var me = this; cfg = cfg || {}; me.callParent([Ext.apply({ storeId: 'DefaultSizeRangeStore', data: [ {key: 'b', value: 'bytes'}, ...
JavaScript
Ext.define('Duplicati.store.LabelStore', { extend: 'Ext.data.Store', constructor: function(cfg) { var me = this; cfg = cfg || {}; me.callParent([Ext.apply({ storeId: 'LabelStore', data: [ {name: 'private'}, {name: 'import...
JavaScript
Ext.define('Duplicati.store.NewBackupChainWhenStore', { extend: 'Ext.data.Store', constructor: function(cfg) { var me = this; cfg = cfg || {}; me.callParent([Ext.apply({ storeId: 'NewBackupChainWhenStore', data: [ {key: '0', value: 'When there are...
JavaScript
Ext.define('Duplicati.store.Schedules', { extend: 'Ext.data.Store', model: 'Duplicati.model.Schedule', autoLoad: true, /* Sort order, * first by queue position * second by next schedule time, * third by last backup time * */ sorters: [{ sorterFn: function(a, b) { var schedulePos...
JavaScript
Ext.define('Duplicati.store.AdditionalPathStore', { extend: 'Ext.data.Store', requires: [ 'Duplicati.model.TaskItems.BackupLocation' ], constructor: function(cfg) { var me = this; cfg = cfg || {}; me.callParent([Ext.apply({ autoLoad: true, ...
JavaScript
function parseBool(v) { if (v == null) return false; if (typeof(v) == 'boolean') return v; v = (v + '').toLowerCase(); return (v == 'true' || v == 'on' || v == '1'); } { // This helps in a debug setup var extdefined = false; try { extdefined = Ext !== undefined; } catch (e) {} if (!extdefined) {...
JavaScript
/* Placeholder for customization */
JavaScript
/* Copyright 2010 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
JavaScript
/* Copyright 2010 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
JavaScript
/* Copyright 2010 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
JavaScript
/* Copyright 2010 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
JavaScript
/* Copyright 2010 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
JavaScript
/* Copyright 2010 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
JavaScript
/* Copyright 2010 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
JavaScript
/* Copyright 2012 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
JavaScript
/* Copyright 2010 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
JavaScript
/* Copyright 2012 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
JavaScript
/* Copyright 2010 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
JavaScript
/* Copyright 2012 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
JavaScript
/* Copyright 2010 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
JavaScript
/* Copyright 2010 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
JavaScript