小编ash*_*ish的帖子

如何禁用jQuery可嵌套列表中的拖放

我正在尝试使用可嵌套的jQuery创建嵌套列表,并在整个列表中禁用拖动功能。下面是我的html。

<div class="dd" id="nestable">
<ol class="dd-list">
    <li class="dd-item" id="no-drag">
        <div class="dd-handle">
            Foo
            <div class="pull-right action-buttons">
                <a class="blue" href="#">
                    <i class="ace-icon fa fa-pencil bigger-130"></i>
                </a>

                <a class="red" href="#">
                    <i class="ace-icon fa fa-trash-o bigger-130"></i>
                </a>
            </div>

        </div>
        <ol class="dd-list">
            <li class="dd-item" id="no-drag">
                <div class="dd-handle">
                    Bar
                    <div class="pull-right action-buttons">
                        <a class="blue" href="#">
                            <i class="ace-icon fa fa-pencil bigger-130"></i>
                        </a>

                        <a class="red" href="#">
                            <i class="ace-icon fa fa-trash-o bigger-130"></i>
                        </a>
                    </div>

                </div>
                <ol class="dd-list">
                    <li class="dd-item" id="no-drag">
                        <div class="dd-handle">
                            Baz
                            <div class="pull-right action-buttons">
                                <a class="blue" href="#"> …
Run Code Online (Sandbox Code Playgroud)

html jquery user-interface jquery-nestable

5
推荐指数
2
解决办法
4498
查看次数

HMVC codeigniter适用于本地服务器,但不适用于Web服务器

这是在杀我

我有什么?CI版本:2.1.4模块化扩展 - HMVC by wiredesignz一个基本的codeigniter(hmvc)项目,可以在本地服务器(mamp)中使用php 5.5.3正常工作

我将项目移动到公共Web服务器后我的问题我改变了以下的事情.--application /配置/ config.php中

$ config ['base_url'] =' http://example.com/ ';

--application /配置/ database.php中

$db['default']['hostname'] = 'localhost';
$db['default']['username'] = 'newdbusername';
$db['default']['password'] = 'newdbpassword';
$db['default']['database'] = 'newdbname'; 
Run Code Online (Sandbox Code Playgroud)

--public_html /的.htaccess

RewriteEngine On
RewriteBase /

#Removes access to the system folder by users.
#Additionally this will allow you to create a System.php controller,
#previously this would not have been possible.
#'system' can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L] …
Run Code Online (Sandbox Code Playgroud)

php .htaccess hmvc codeigniter-2 codeigniter-hmvc

2
推荐指数
1
解决办法
6773
查看次数