File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 10
10
11
11
< script >
12
12
derby . App . prototype . getTemplate = function ( filename ) {
13
- console . warn ( "get template" , filename )
14
-
15
13
var el = document . getElementById ( filename ) ;
16
14
if ( el ) return el ;
17
15
18
16
var result = undefined ;
19
17
18
+ if ( filename [ 0 ] === '/' )
19
+ filename = '.' + filename ;
20
+
20
21
$ . ajax ( {
21
22
method : 'GET' ,
22
23
url : filename ,
38
39
</ head >
39
40
40
41
< body >
41
- < script id ="/ select2-demo.html " type ="text/template ">
42
+ < script id ="select2-demo.html " type ="text/template ">
42
43
< Body :>
43
44
< div class = "container" >
44
45
< h1 > Derby Select2 Demo</ h1 >
@@ -120,7 +121,7 @@ <h4>Bootstrap</h4>
120
121
var app = derby . createApp ( )
121
122
122
123
// Load templates from id
123
- app . loadViews ( '/ select2-demo.html' )
124
+ app . loadViews ( 'select2-demo.html' )
124
125
app . component ( Select2 . Select2 )
125
126
126
127
// create the page
You can’t perform that action at this time.
0 commit comments