~ubuntu-branches/ubuntu/wily/spyder/wily-proposed

« back to all changes in this revision

Viewing changes to spyderlib/utils/inspector/js/fix_image_paths.js

  • Committer: Package Import Robot
  • Author(s): Ghislain Antony Vaillant, Ghislain Antony Vaillant, Picca Frédéric-Emmanuel
  • Date: 2014-10-19 11:42:57 UTC
  • mfrom: (1.2.8)
  • Revision ID: package-import@ubuntu.com-20141019114257-st1rz4fmmscgphhm
Tags: 2.3.1+dfsg-1
* Team upload

[Ghislain Antony Vaillant]
* New upstream release. (Closes: #765963)
* Bump Standards-Version to 3.9.6 (no changes required).
* d/control: fix pedantic lintian warning regarding capitalization in
  packages' description.

[Picca Frédéric-Emmanuel]
* Update the homepage now that upstream moved to bitbucket.
* debian/copyright
  - updated for 2.3.1 version
* debian/control
  + Recommends: python-pandas and python3-pandas

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//----------------------------------------------------------------------------
 
2
//  Set absolute path for images
 
3
//
 
4
//  Copyright 2014 by The Spyder development team
 
5
//
 
6
//  Distributed under the terms of the MIT License
 
7
//----------------------------------------------------------------------------
 
8
 
 
9
//============================================================================
 
10
// On document ready
 
11
//============================================================================
 
12
 
 
13
$(document).ready(function () {
 
14
    $('img').attr('src', function(index, attr){
 
15
        var path = attr.split('/')
 
16
        var img_name = path.reverse()[0]
 
17
        return '{{img_path}}' + '/' + img_name
 
18
    });
 
19
});