1
//----------------------------------------------------------------------------
2
// Set absolute path for images
4
// Copyright 2014 by The Spyder development team
6
// Distributed under the terms of the MIT License
7
//----------------------------------------------------------------------------
9
//============================================================================
11
//============================================================================
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