您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Позволяет менять приоритет сбыта на складе и заводе перетаскивая строки мышкой
// ==UserScript== // @name Virtonomica: редактирование приоритета сбыта с помощью перетаскивания мышкой // @namespace virtonomica // @version 1.0 // @description Позволяет менять приоритет сбыта на складе и заводе перетаскивая строки мышкой // @include http*://*virtonomic*.*/*/main/unit/view/*/sale // @include http*://*virtonomic*.*/*/main/unit/view/*/sale/product // @include http*://*virtonomic*.*/*/main/unit/view/*/sale/product/*/* // ==/UserScript== var run = function() { var win = (typeof(unsafeWindow) != 'undefined' ? unsafeWindow : top.window); $ = win.$; function makeSortable(){ $("table.salelist > tbody").sortable({ items: "> tr:not(:first, :lt(2))", appendTo: "parent", helper: "clone", stop: function( event, ui ) { $(this).find('tr > td > table.position > tbody > tr > td > input').each(function(i){ $(this).val(i+1); }); ui.item.find('td > table.position > tbody > tr > td > input').keypress(); ui.item.find('td > table.position > tbody > tr > td > img').click(); makeSortable(); } }).disableSelection(); } makeSortable(); } if(window.top == window) { var script = document.createElement("script"); script.textContent = '(' + run.toString() + ')();'; document.documentElement.appendChild(script); }