| author | ymh <ymh.work@gmail.com> |
| Wed, 21 Mar 2012 00:45:05 +0100 | |
| changeset 89 | 738cc74f9f7f |
| parent 74 | 901463f9b11c |
| child 94 | 95ccb3524522 |
| permissions | -rwxr-xr-x |
|
74
901463f9b11c
add headers for public repository release
ymh <ymh.work@gmail.com>
parents:
61
diff
changeset
|
1 |
{# |
|
901463f9b11c
add headers for public repository release
ymh <ymh.work@gmail.com>
parents:
61
diff
changeset
|
2 |
This file is part of the WikiTagBundle package. |
|
901463f9b11c
add headers for public repository release
ymh <ymh.work@gmail.com>
parents:
61
diff
changeset
|
3 |
|
|
901463f9b11c
add headers for public repository release
ymh <ymh.work@gmail.com>
parents:
61
diff
changeset
|
4 |
(c) IRI <http://www.iri.centrepompidou.fr/> |
|
901463f9b11c
add headers for public repository release
ymh <ymh.work@gmail.com>
parents:
61
diff
changeset
|
5 |
|
|
901463f9b11c
add headers for public repository release
ymh <ymh.work@gmail.com>
parents:
61
diff
changeset
|
6 |
For the full copyright and license information, please view the LICENSE |
|
901463f9b11c
add headers for public repository release
ymh <ymh.work@gmail.com>
parents:
61
diff
changeset
|
7 |
file that was distributed with this source code. |
|
901463f9b11c
add headers for public repository release
ymh <ymh.work@gmail.com>
parents:
61
diff
changeset
|
8 |
#} |
| 2 | 9 |
{# partial display to add the needed Javascript #} |
10 |
<script type="text/javascript" src="{{ asset('bundles/wikitag/js/jquery.min.js') }}" ></script> |
|
11 |
<script type="text/javascript" src="{{ asset('bundles/wikitag/js/jquery.qtip.min.js') }}" ></script> |
|
12 |
<script type="text/javascript" src="{{ asset('bundles/wikitag/js/jquery.validate.js') }}" ></script> |
|
13 |
<script type="text/javascript" src="{{ asset('bundles/wikitag/js/jquery.textchange.min.js') }}" ></script> |
|
14 |
<script type="text/javascript" src="{{ asset('bundles/wikitag/js/jquery.tablednd_0_5.js') }}"></script> |
|
15 |
<script type="text/javascript" src="{{ asset('bundles/wikitag/js/jquery-ui.min.js') }}"></script> |
|
16 |
<script type="text/javascript" src="{{ asset('bundles/wikitag/js/jquery.jeditable.js') }}"></script> |
|
|
53
22377c9e2eae
First step of column management in document tag list. Little debug on js for move up down.
cavaliet
parents:
33
diff
changeset
|
17 |
<script type="text/javascript" src="{{ asset('bundles/wikitag/js/jquery.clickmenu.js') }}"></script> |
|
22377c9e2eae
First step of column management in document tag list. Little debug on js for move up down.
cavaliet
parents:
33
diff
changeset
|
18 |
<script type="text/javascript" src="{{ asset('bundles/wikitag/js/jquery.cookie.js') }}"></script> |
|
54
ec51b9f4695f
Upgrade column management with possibility to return to the initial columns. Little debug in all tag list.
cavaliet
parents:
53
diff
changeset
|
19 |
<script type="text/javascript" src="{{ asset('bundles/wikitag/js/jquery.columnmanager.iri.js') }}"></script> |
| 2 | 20 |
<script type="text/javascript" src="{{ asset('bundles/wikitag/js/wikiTag.js') }}" ></script> |
21 |
<script type="text/javascript"> |
|
22 |
||
23 |
var global_csrf_token = "{# csrf_token #}"; |
|
24 |
var static_url = "{{ asset('bundles/wikitag/') }}"; |
|
25 |
var tag_up_down_url = "{{ url('wikitag_tag_up_down') }}"; |
|
26 |
var remove_tag_from_list_url = "{{ url('wikitag_remove_tag_from_list') }}"; |
|
|
22
99c15cfe420b
Add ModifyTag from tag list. Add Reset Wikipedia info from tag list. Enable boolean from addJavascript controller/template to switch from list or document context.
cavaliet
parents:
2
diff
changeset
|
27 |
{% if tags_list==true %} |
|
99c15cfe420b
Add ModifyTag from tag list. Add Reset Wikipedia info from tag list. Enable boolean from addJavascript controller/template to switch from list or document context.
cavaliet
parents:
2
diff
changeset
|
28 |
var modify_tag_url = "{{ url('wikitag_modify_tag_in_list') }}"; |
|
99c15cfe420b
Add ModifyTag from tag list. Add Reset Wikipedia info from tag list. Enable boolean from addJavascript controller/template to switch from list or document context.
cavaliet
parents:
2
diff
changeset
|
29 |
{% else %} |
| 2 | 30 |
var modify_tag_url = "{{ url('wikitag_modify_documenttag') }}"; |
|
22
99c15cfe420b
Add ModifyTag from tag list. Add Reset Wikipedia info from tag list. Enable boolean from addJavascript controller/template to switch from list or document context.
cavaliet
parents:
2
diff
changeset
|
31 |
{% endif %} |
| 2 | 32 |
var reset_wp_info_url = "{{ url('wikitag_reset_wp_info') }}"; |
| 61 | 33 |
var relaunch_wp_search_url = "{{ url('wikitag_relaunch_wp_search') }}"; |
| 2 | 34 |
var reorder_tag_datasheet_url = "{{ url('wikitag_reorder_tag_document') }}"; |
35 |
var add_tag_url = "{{ url('wikitag_add_tag') }}"; |
|
36 |
var remove_wp_link_url = "{{ url('wikitag_remove_wp_link') }}"; |
|
37 |
var update_tag_alias_url = "{{ url('wikitag_update_tag_alias') }}"; |
|
38 |
var update_tag_category_url = "{{ url('wikitag_update_tag_category') }}"; |
|
39 |
var categories_list = '{{ categories|raw }}'; |
|
|
53
22377c9e2eae
First step of column management in document tag list. Little debug on js for move up down.
cavaliet
parents:
33
diff
changeset
|
40 |
// We prepare the list of the columns to hide |
|
22377c9e2eae
First step of column management in document tag list. Little debug on js for move up down.
cavaliet
parents:
33
diff
changeset
|
41 |
var columsToHide = []; |
|
22377c9e2eae
First step of column management in document tag list. Little debug on js for move up down.
cavaliet
parents:
33
diff
changeset
|
42 |
{% if columns is not null and 'order' not in columns %}columsToHide.push(1);{% endif %} |
|
22377c9e2eae
First step of column management in document tag list. Little debug on js for move up down.
cavaliet
parents:
33
diff
changeset
|
43 |
{% if columns is not null and 'id' not in columns %}columsToHide.push(2);{% endif %} |
|
22377c9e2eae
First step of column management in document tag list. Little debug on js for move up down.
cavaliet
parents:
33
diff
changeset
|
44 |
{% if columns is not null and 'move_up_down' not in columns %}columsToHide.push(3);{% endif %} |
|
22377c9e2eae
First step of column management in document tag list. Little debug on js for move up down.
cavaliet
parents:
33
diff
changeset
|
45 |
{% if columns is not null and 'label' not in columns %}columsToHide.push(4);{% endif %} |
|
22377c9e2eae
First step of column management in document tag list. Little debug on js for move up down.
cavaliet
parents:
33
diff
changeset
|
46 |
{% if columns is not null and 'wikipedia_link' not in columns %}columsToHide.push(5);{% endif %} |
|
22377c9e2eae
First step of column management in document tag list. Little debug on js for move up down.
cavaliet
parents:
33
diff
changeset
|
47 |
{% if columns is not null and 'wikipedia_permalink' not in columns %}columsToHide.push(6);{% endif %} |
|
22377c9e2eae
First step of column management in document tag list. Little debug on js for move up down.
cavaliet
parents:
33
diff
changeset
|
48 |
{% if columns is not null and 'dbpedia_link' not in columns %}columsToHide.push(7);{% endif %} |
|
22377c9e2eae
First step of column management in document tag list. Little debug on js for move up down.
cavaliet
parents:
33
diff
changeset
|
49 |
{% if columns is not null and 'category' not in columns %}columsToHide.push(8);{% endif %} |
|
22377c9e2eae
First step of column management in document tag list. Little debug on js for move up down.
cavaliet
parents:
33
diff
changeset
|
50 |
{% if columns is not null and 'remove_wikipedia_link' not in columns %}columsToHide.push(9);{% endif %} |
|
22377c9e2eae
First step of column management in document tag list. Little debug on js for move up down.
cavaliet
parents:
33
diff
changeset
|
51 |
{% if columns is not null and 'alias' not in columns %}columsToHide.push(10);{% endif %} |
|
22377c9e2eae
First step of column management in document tag list. Little debug on js for move up down.
cavaliet
parents:
33
diff
changeset
|
52 |
{% if columns is not null and 'remove_tag_from_list' not in columns %}columsToHide.push(11);{% endif %} |
|
22377c9e2eae
First step of column management in document tag list. Little debug on js for move up down.
cavaliet
parents:
33
diff
changeset
|
53 |
{% if columns is not null and 'alternative_label' not in columns %}columsToHide.push(12);{% endif %} |
|
22377c9e2eae
First step of column management in document tag list. Little debug on js for move up down.
cavaliet
parents:
33
diff
changeset
|
54 |
{% if columns is not null and 'alternative_wikipedia_url' not in columns %}columsToHide.push(13);{% endif %} |
| 2 | 55 |
|
56 |
$(document).ready(function(){ |
|
|
31
b910b4f7485f
First step of context menu to add tag by selecting a part of text in the page.
cavaliet
parents:
22
diff
changeset
|
57 |
wikitag_init_tags_events(); |
|
b910b4f7485f
First step of context menu to add tag by selecting a part of text in the page.
cavaliet
parents:
22
diff
changeset
|
58 |
wikitag_init_datasheet_events(); |
| 2 | 59 |
}); |
60 |
</script> |