• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

compassinformatics / cpsi-mapview / 15022980938

14 May 2025 02:11PM UTC coverage: 26.333% (+0.04%) from 26.29%
15022980938

push

github

geographika
Move describe to test globals

492 of 2344 branches covered (20.99%)

Branch coverage included in aggregate %.

1464 of 5084 relevant lines covered (28.8%)

1.17 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

5.88
/app/controller/button/PermalinkButtonController.js
1
/**
2
 * This class is the controller for the {@link CpsiMapview.view.button.PermalinkButton} button.
3
 */
4
Ext.define('CpsiMapview.controller.button.PermalinkButtonController', {
1✔
5
    extend: 'Ext.app.ViewController',
6

7
    alias: 'controller.cmv_permalink_button',
8
    /**
9
     * Zoom to a permalink
10
     **/
11
    onPermalinkClick: function () {
12
        const me = this;
×
13
        const defaultValue = window.location.href;
×
14
        const dialogWidth = me.getView().dialogWidth;
×
15
        const cfg = {
×
16
            prompt: true,
17
            title: 'Zoom to Permalink',
18
            minWidth: dialogWidth,
19
            message: 'Please enter the permalink below:',
20
            buttons: Ext.Msg.OKCANCEL,
21
            callback: function (btn, text) {
22
                if (btn == 'ok') {
×
23
                    const map = me.getView().up('cmv_map');
×
24
                    const parts = text.split('#map='); // only get the permalink from the URL
×
25
                    let permalink = null;
×
26

27
                    if (parts.length === 2) {
×
28
                        permalink = parts[1];
×
29
                        map.mapCmp.applyState(
×
30
                            map.permalinkProvider.readPermalinkHash(permalink)
31
                        );
32
                    }
33
                }
34
            },
35
            scope: me,
36
            multiline: false,
37
            value: defaultValue
38
        };
39

40
        Ext.Msg.prompt(cfg);
×
41
    }
42
});
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc