我正在上线371错误是下面的最后一行 - 基本上,我想覆盖弹出当你点击该链接请求管理员权限这里http://www.albumpl.us/gallery/trial/photos正确压缩咖啡脚本的缩进?
extraTestButtons.append('<a href="mailto:[email protected]">Request Admin Privileges</a> | | <a href="#">Turn SMART BROWSE (ON)</a> | ' +
' | <a href="#">Purchase prints and other merchandise</a>|| <a href="http://www.albumpl.us/gallery/#{gal_code}/live">Live View</a>')
extraTestButtons.find('a').click ->
if $(this).text() == 'Request Admin Privileges'
return false
showNotYetAvailableMessage($(this).text())
请出示你的问题的实际缩进。它在SO上格式化的方式不可能是你真正拥有的。或者,您可以直接链接到您的CoffeeScript代码吗? –
我刚刚从我有权访问的测试“沙箱”页面复制粘贴 - 直接链接位于上方,或者您的意思是其他内容... – adam
我的意思是直接链接到CoffeeScript代码,因为我没有不确定你的帖子中的标签和空格的混合是有意的还是来自真实的代码。但是,看起来你已经有了答案。 –