CSC495-2014 / TeamworkEnglewoodGit

GNU General Public License v2.0
5 stars 15 forks source link

call addTab syntax #35

Closed xwang12 closed 10 years ago

xwang12 commented 10 years ago

Hi @apotheos

When I open editor.blade.php, it shows the following line of code has a syntax error (line 75):

$('#filesystem').fileTree({ script: '{{URL::action('FileController@indexPost')}}' }, function(filepath) {

I don't know how to fix this.

Thanks,

mikeholler commented 10 years ago

The double curly braces should technically be surrounded by double quotes, not single quotes. You do not need to change anything though, as the error goes away when Laravel replaces the double brace block with the correct URL. This happens whenever the page is served by the Web server. So really, there is no error, as the text get replaced after it is processed by Laravel. Do not worry about fixing it. On Feb 8, 2014 9:05 PM, "Xiao Wang" notifications@github.com wrote:

Hi @apotheos https://github.com/apotheos

When I open editor.blade.php, it shows the following line of code has a syntax error (line 75):

$('#filesystem').fileTree({ script: '{{URL::action('FileController@indexPost')}}' }, function(filepath) {

I don't know how to fix this.

Thanks,

Reply to this email directly or view it on GitHubhttps://github.com/CSC495-2014/TeamworkEnglewoodGit/issues/35 .

xwang12 commented 10 years ago

Thank you