(name, options, reload, reorder)
| 2594 | }; |
| 2595 | |
| 2596 | var modifyScriptOptions = function(name, options, reload, reorder) { |
| 2597 | if (V) console.log("run modifyScriptOptions"); |
| 2598 | if (reload == undefined) reload = true; |
| 2599 | try { |
| 2600 | var s = { method: "modifyScriptOptions", name: name, reload: reload, reorder: reorder }; |
| 2601 | for (var k in options) { |
| 2602 | if (!options.hasOwnProperty(k)) continue; |
| 2603 | s[k] = options[k]; |
| 2604 | } |
| 2605 | |
| 2606 | if (V) console.log("modifyScriptOptions sendReq"); |
| 2607 | chrome.extension.sendMessage(s, |
| 2608 | function(response) { |
| 2609 | if (response.items) { |
| 2610 | scheduleReCreate(response.items, name && true); |
| 2611 | } |
| 2612 | }); |
| 2613 | Please.wait(I18N.getMessage("Please_wait___")); |
| 2614 | } catch (e) { |
| 2615 | console.log("mSo: " + e.message); |
| 2616 | } |
| 2617 | }; |
| 2618 | |
| 2619 | var modifyScriptOption = function(name, id, value, reload, reorder) { |
| 2620 | if (V) console.log("run modifyScriptOption"); |
no test coverage detected
searching dependent graphs…