How to use the gui.dblclick_seed function in gui

To help you get started, we’ve selected a few gui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hadouken / hadouken / src / WebUI / Js / main.js View on Github external
"resetText": L_("MENU_RESET"),
        "colText": {
              "name" : L_("ST_COL_NAME")
            , "value" : L_("ST_COL_VALUE")
        }
    });

    // -- Buttons
    _loadStrings("value", [
          "DLG_SETTINGS_4_CONN_04" // "Random"
        , "DLG_SETTINGS_7_TRANSFERCAP_12" // "Reset History"
        , "DLG_SETTINGS_A_ADVANCED_05" // "Set"
    ]);

    // -- Comboboxes
    _loadComboboxStrings("gui.dblclick_seed", L_("ST_CBO_UI_DBLCLK_TOR").split("||"), WebUI.settings["gui.dblclick_seed"]);
    _loadComboboxStrings("gui.dblclick_dl", L_("ST_CBO_UI_DBLCLK_TOR").split("||"), WebUI.settings["gui.dblclick_dl"]);
    _loadComboboxStrings("encryption_mode", L_("ST_CBO_ENCRYPTIONS").split("||"), WebUI.settings["encryption_mode"]);
    _loadComboboxStrings("proxy.type", L_("ST_CBO_PROXY").split("||"), WebUI.settings["proxy.type"]);
    _loadComboboxStrings("multi_day_transfer_mode", L_("ST_CBO_TCAP_MODES").split("||"), WebUI.settings["multi_day_transfer_mode"]);
    _loadComboboxStrings("multi_day_transfer_limit_unit", L_("ST_CBO_TCAP_UNITS").split("||"), WebUI.settings["multi_day_transfer_limit_unit"]);
    _loadComboboxStrings("multi_day_transfer_limit_span", L_("ST_CBO_TCAP_PERIODS").split("||"), WebUI.settings["multi_day_transfer_limit_span"]);
    
    //	$("sched_table").fireEvent("change"); // Force update scheduler related language strings
}
github hadouken / hadouken / src / WebUI / webui.js View on Github external
"trtDblClk": function(id) {
		if (!isGuest && this.trtTable.selectedRows.length == 1) {
			var tor = this.torrents[id];
			var action = parseInt((
				tor[CONST.TORRENT_PROGRESS] == 1000
					? this.settings["gui.dblclick_seed"]
					: this.settings["gui.dblclick_dl"]
			), 10) || CONST.TOR_DBLCLK_SHOW_PROPS;

			switch (action) {
				case CONST.TOR_DBLCLK_SHOW_PROPS:
					this.showProperties();
				break;

				default:
					this.perform((tor[CONST.TORRENT_STATUS] & (CONST.STATE_STARTED | CONST.STATE_QUEUED)) ? "stop" : "start");
			}
		}
	},