Lines Matching refs:if
2 if(ckgdoku_dwedit_reject) {
19 if(results.match(regex)) return true;
22 if(results.match(regex)) return true;
25 if(results.match(regex)) return true;
28 if(results.match(regex)) return true;
40 if(rows[i][col].rowspan > 0) {
43 if(!ini) break;
66 if(!num_spans) return false;
77 if(tmp.length) {
86 if(!useComplexTables) return;
88 if(!reorder_span_rows(rows)) break;;
98 if(align == 'center' || align == 'right') {
103 if(align == 'center' || align == 'left') {
107 if(rows[i][col].colspan) {
121 if(id != 'bakup') draft_delete();
254 if(c1_inx == -1 || c2_inx == -1) return;
255 if(c1.length + c2_inx == c2_inx) {
269 if(!interwiki_label.match(/oIWIKIo.*?cIWIKIc/)) {
281 /** if table debugging code:
284 if(markup[tag]) {
285 if(format_chars[tag] && this.in_link) {
289 if(format_chars[tag] && (this.in_font || this.in_header)) {
297 else if(tag == 'acronym') {
300 if(format_chars[tag] && this.in_endnotes) {
301 if(tag == 'sup') return;
303 if(tag == 'ol' || tag == 'ul') {
306 if(this.list_level == 1) this.list_started = false;
307 if(this.list_started) this.prev_li.push(markup['li']) ;
312 else if(!this.list_level) {
319 if(tag == 'img') {
331 if(tag == 'a') {
356 if(tag == 'p') {
358 if(this.in_table) {
365 if(tag == 'table') {
375 else if(tag == 'tr') {
383 else if(tag == 'td' || tag == 'th') {
389 if(this.td_rowspan && this.rowspan_col == this.td_no && this.td_no != this.last_column) {
405 if(format_chars[tag])this.format_tag = true;
410 // if(!confirm(tag + ' ' + attrs[i].name + '="' + attrs[i].escaped + '"')) exit;
411 if(tag == 'td' || tag == 'th') {
412 if(attrs[i].name =='colspan') {
415 if(attrs[i].name =='class') {
416 if((matches=attrs[i].value.match(/(left|center|right)/))) {
420 if(attrs[i].name == 'rowspan') {
424 if(attrs[i].escaped == 'u' && tag == 'em' ) {
430 if(tag == 'div') {
431 if(attrs[i].name == 'class' && attrs[i].value == 'footnotes') {
437 … if(tag == 'dl' && attrs[i].name == 'class' && attrs[i].value == 'file') {
442 if(tag == 'span' && attrs[i].name == 'class') {
443 if(attrs[i].value == 'np_break') return;
446 if(tag == 'span' && attrs[i].name == 'class') {
447 if(attrs[i].value =='curid') {
451 if(attrs[i].value == 'multi_p_open') {
456 if(attrs[i].value == 'multi_p_close') {
460 if(attrs[i].value.match(geshi_classes)) {
468 if(tag == 'span' && !ckgdoku_xcl_styles) {
469 if(attrs[i].name == 'style') {
470 if(!this.in_font) results += "__STYLE__";
474 if(matches){
480 if(matches){
485 if(matches) {
490 if(matches) {
492 if(matches[0].match(/background/)) {
499 …if(!bgcolor_found) { //catch MS Word which uses background:color-name instead of background-color…
501 if(matches && matches[0].match(/background/)) {
509 if(tag == 'td' || tag == 'th') {
510 if(tag == 'td') {
514 if(attrs[i].name == 'align') {
518 else if(attrs[i].name == 'class') {
520 if(matches) {
524 else if(attrs[i].name == 'colspan') {
528 else if(attrs[i].name == 'rowspan') {
536 if(tag == 'a') {
538 // if(!confirm(attrs[i].name + '="' + attrs[i].escaped + '"')) exit;
539 if(attrs[i].name == 'title') {
541 if(interwiki_class) {
546 else if(attrs[i].name == 'class') {
547 if(attrs[i].value.match(/fn_top/)) {
550 else if(attrs[i].value.match(/fn_bot/)) {
553 else if(attrs[i].value.match(/mf_(png|gif|jpg|jpeg)/i)) {
556 else if(attrs[i].value.match(/interwiki/)) {
566 else if(attrs[i].name == 'id') {
569 else if(attrs[i].name == 'type') {
573 else if(attrs[i].name == 'href' && !this.code_type) {
575 if(http) save_url = attrs[i].escaped;
576 if(attrs[i].escaped.match(/\/lib\/exe\/detail.php/)) {
579 else if(attrs[i].escaped.match(/exe\/fetch.php/)) {
583 if(this.link_class && this.link_class.match(/media/) && !this.link_title) {
585 if(link_find) this.link_title = link_find[1];
590 if(media_type) media_type = media_type[1];
592 if(attrs[i].escaped.match(/^https*:/)) {
596 if(attrs[i].escaped.match(/^ftp:/)) {
600 else if(attrs[i].escaped.match(/do=export_code/)) {
603 else if(attrs[i].escaped.match(/^nntp:/)) {
607 else if(attrs[i].escaped.match(/^mailto:/)) {
611 else if(attrs[i].escaped.match(/m-files/)) {
616 else if(attrs[i].escaped.match(/^file:/)) { //samba share
624 … else if(http && !media_type && (matches = attrs[i].escaped.match(/fetch\.php(.*)/)) ) {
625 if(matches[1].match(/media=/)) {
634 if(typeof config_animal !== 'undefined') {
637 if(matches && matches[1]) this.attr = matches[1];
638 … if(this.attr) this.attr = this.attr.replace(/\//g,':');
643 if(!this.attr.match(/^:/)) {
653 if(matches && save_url) {
655 if(!attrs[i].escaped.match(rx)) {
661 if(!matches) {
666 if(matches) {
667 if(!matches[1].match(/\?/) && matches[1].match(/&/)) {
672 if(matches && matches[1]) {
673 if(!matches[1].match(/^:/)) {
680 if(this.attr.match(/\.\w+$/)) { // external mime's first access
681 if(type && type == 'other_mime') {
686 if(attrs[n].value.match(/other_mime/))
697 if(matches) {
704 if(this.link_class == 'media') {
705 if(attrs[i].value.match(/http:/)) {
710 if(!this.attr && this.link_title) {
712 if(matches = this.link_class.match(/media(.*)/)) {
716 if(m && m[1]) {
719 else if(m) {
723 if(!this.attr.match(/^:/) && !this.attr.match(/^https?\:/)) {
731 …if(this.attr.match && this.attr.match(/%[a-fA-F0-9]{2}/) && (matches = this.attr.match(/userfiles…
733 if(!matches[1].match(/^:/)) {
741 else if(this.attr && this.attr.match(/%[a-fA-F0-9]{2}/)) {
747 … if(this.link_title && this.link_title.match(/Snippet/)) this.code_snippet = true;
750 if(attrs[i].value.match(/^#/) && this.link_class.match(/wikilink/)) {
756 if(this.link_class.match(/wikilink/) && this.link_title) {
758 if(!this.attr){
761 if(!this.attr.match(/^:/)) {
764 if(this.attr.match(/\?.*?=/)){
774 if(!qs_set && attrs[i].name == 'href') {
775 if(!this.attr.match(/\?.*?=/) && !attrs[i].value.match(/doku.php/)) {
777 if(qs && qs[1]) this.attr += qs[1];
782 else if(this.link_class.match(/mediafile/) && this.link_title && !this.attr) {
786 if(!this.attr.match(/^:/)) {
790 else if(this.link_class.match(/interwiki/)) {
794 if(this.link_class == 'urlextern' && !this.mfile && save_url) {
798 if(this.in_endnotes) {
799 if(this.link_title) {
802 else if(this.attr) {
812 if(interwiki_class && interwiki_title) {
818 if(tag == 'sup') {
819 if(attrs[i].name == 'class') {
821 if(matches[0] == 'dwfcknote') {
824 if(oDokuWiki_FCKEditorInstance.oinsertHtmlCodeObj.notes[matches[1]]) {
832 if(tag == 'pre') {
833 if(attrs[i].name == 'class') {
836 if(elems.length > 1) {
844 if(this.downloadable_code) {
849 if(this.in_table) tag = 'pre_td';
855 else if(tag == 'img') {
856 if(attrs[i].name == 'alt') {
859 if(attrs[i].name == 'type') {
863 if(attrs[i].name == 'src') {
868 if(matches = attrs[i].escaped.match(/fetch\.php.*?(media=.*)/)) {
871 if(matches = attrs[i].escaped.match(/(media.*)/)) {
876 if(!src.match(/https?:/) && !src.match(/^:/)) src = ':' + src;
878 else if(attrs[i].escaped.match(/https?:\/\//)){
883 … else if(matches = attrs[i].escaped.match(/\/_media\/(.*)/)) {
887 if(!src.match(/^:/)) src = ':' + src;
890 else if(matches = attrs[i].escaped.match(/\/lib\/exe\/fetch.php\/(.*)/)) {
893 if(!src.match(/^:/)) src = ':' + src;
899 if(!matches && typeof config_animal !== 'undefined') {
903 if(!matches) { // windows style
910 if(matches && matches[1]) {
916 if(src.search(/data:image.*?;base64/) > -1) {
922 if(src && src.match(/lib\/images\/smileys/)) {
927 …if(this.attr && this.attr.match && this.attr.match(/%[a-fA-F0-9]{2}/)) { …
936 else if (attrs[i].name == 'width' && !style) {
940 else if (attrs[i].name == 'height' && !style) {
943 else if(attrs[i].name == 'style') {
945 if(match) {
948 if(match) height = match[1];
951 else if(attrs[i].name == 'align' || attrs[i].name == 'class') {
952 if(attrs[i].escaped.match(/(center|middle)/)) {
955 else if(attrs[i].escaped.match(/right/)) {
958 else if(attrs[i].escaped.match(/left/)) {
968 if(this.is_smiley) {
969 if(alt) {
976 if(this.link_only) tag = 'img';
977 if(tag == 'br') {
978 if(this.in_multi_plugin) {
983 if(!this.code_type) {
986 else if(this.code_type) {
991 if(this.in_table) {
995 if(this.list_started) {
1003 else if(tag.match(/^h(\d+|r)/)) {
1005 if(tag.match(/h(\d+)/)) {
1008 if(str_len) {
1009 if(results.charCodeAt(str_len -1) == 32) {
1014 else if(this.last_col_pipes) {
1015 if(format_chars[tag]) results += markup[tag];
1018 else if(dwfck_note) {
1023 if(tag == 'b' || tag == 'i' && this.list_level) {
1024 if(results.match(/(\/\/|\*)(\x20)+/)) {
1029 if(tag == 'li' && this.list_level) {
1030 if(this.list_level == 1 & !this.list_started) {
1038 if(results.match(/_FORMAT_SPACE_\s*$/)) {
1041 if(this.list_level > 1) {
1046 if(this.prev_list_level > 0 && markup['li'] == markup['ol']) {
1050 if(tag == 'a' && this.list_level) {
1053 if(tag == 'a' && local_image) {
1057 else if(tag == 'a' && (this.export_code || this.code_snippet)) {
1060 else if (tag == 'a' && this.footnote) {
1063 else if(tag == 'a' && bottom_note) {
1066 else if(tag == 'a' && this.external_mime) {
1067 if(this.in_endnotes) {
1072 if(media_class && media_class == 'mediafile' ) {
1080 else if(this.in_font) {
1081 if(tag == 'a') {
1089 if(this.in_endnotes && tag == 'a') return;
1090 if(this.code_type && tag == 'span') tag = 'blank';
1091 if(this.mfile && !this.attr) {
1096 if(tag == 'td' || tag == 'th' || (this.last_col_pipes && this.td_align == 'center')) {
1097 if(this.is_rowspan) {
1101 if(this.td_align == 'center' || this.td_align == 'right') {
1106 else if(tag == 'a' && this.attr) {
1110 else if(tag == 'img') {
1113 if(this.link_only) link_type = 'link_only';
1114 if(!link_type || from_clipboard){
1117 else if(link_type == 'detail') {
1121 if(link_type == 'link_only') {
1124 else if(link_type) {
1127 if(width && height) {
1130 else if(width) {
1133 else if(!link_type) {
1136 if(img_align && img_align != 'left') {
1140 if(img_align == 'center' || img_align == 'left') {
1143 if(alt) {
1149 else if(tag == 'pre' || tag == 'pre_td') {
1150 if(this.downloadable_file) this.attr += ' ' + this.downloadable_file;
1151 if(!this.attr) this.attr = 'code';
1157 } // if markup tag
1162 if(format_chars[tag] && (this.in_font || this.in_header)){
1164 if(tag == 'sup' || tag == 'sub' || tag == 'del' || tag == 'strike' || tag == 's') {
1172 if(this.in_endnotes && tag == 'a') return;
1173 if(this.in_link && format_chars[current_tag] && this.link_formats.length) {
1176 else if(tag == 'a' && ! this.link_formats.length) this.in_link = false;
1178 if(this.link_only){
1183 if(!markup[tag]) return;
1185 if(tag == 'sup' && this.attr == 'dwfcknote') {
1188 if(this.is_smiley) {
1190 if(tag !='li') return;
1192 if(tag == 'span' && this.in_font && !ckgdoku_xcl_styles) {
1197 if(inherits && inherits.length < 3) HTMLParserFontInfix = true;
1209 if(tag == 'span' && this.curid) {
1213 if(tag == 'dl' && this.downloadable_code) {
1217 if(useComplexTables && (tag == 'td' || tag == 'th')) {
1222 if(tag == 'a' && (this.export_code || this.code_snippet)) {
1228 if(this.code_type && tag == 'span') tag = 'blank';
1230 if(this.footnote) {
1234 else if(tag == 'a' && this.xcl_markup) {
1238 else if(tag == 'table') {
1240 if(useComplexTables ) {
1246 if(tag == 'p' && this.in_table) {
1250 if(this.geshi) {
1255 if(tag == 'code' && ! this.list_started) { // empty code markup corrupts results
1256 if(results.match(/''\s*$/m)) {
1263 else if(tag == 'a' && this.attr == 'src') {
1264 // if local image without link content, as in <a . . .></a>, delete link markup
1265 if(this.backup('\[\[', '\{')) return;
1268 if( this.end_nested) {
1273 if(tag == 'ol' || tag == 'ul') {
1275 if(!this.list_level) this.format_in_list = false;
1276 if(this.prev_li.length) {
1283 else if(tag == 'a' && this.external_mime) {
1285 if(this.is_mediafile) {
1291 else if(tag == 'pre') {
1293 if(this.code_type) {
1299 if(fileinx > codeinx) {
1308 else if(markup_end[tag]) {
1311 else if(this.attr == 'u' && tag == 'em' ) {
1314 else if(tag == 'acronym') {
1320 if(current_tag == 'tr') {
1321 if(this.last_col_pipes) {
1326 if(this.td_rowspan && this.rowspan_col == this.td_no+1) {
1333 else if(current_tag == 'td' || current_tag == 'th') {
1338 else if (current_tag.match(/h\d+/)) {
1343 if(markup['li']) {
1344 if(results.match(/\n$/) && !this.list_level) {
1351 if(this.in_endnotes && current_tag == 'sup') {return}
1354 if(format_chars[current_tag]) {
1355 if(this.list_level) {
1364 if(this.td_colspan && !useComplexTables) {
1365 if(this.td_align == 'center') results += ' ';
1367 if(current_tag == 'th')
1377 else if(this.td_align == 'center') {
1382 if(current_tag == 'a' && this.link_formats.length) {
1400 else if(current_tag == 'a') {
1410 if(text.match(/~~START_HTML_BLOCK~~/)) {
1413 if(text.match(/~~CLOSE_HTML_BLOCK~~/)) {
1417 if(this.interwiki) {
1420 if(this.interwiki && results.match(/>\w+\s*\|$/)) {
1422 if(this.attr) {
1430 if(this.in_multi_plugin) {
1440 if(text.match(/^&\w+;/)) {
1444 if(this.link_only) {
1445 if(text) {
1451 if(!this.code_type) {
1452 if(! this.last_col_pipes) {
1458 if(this.format_tag) {
1459 if(!this.list_started || this.in_table) text = text.replace(/^\s+/, '@@_SP_@@');
1461 else if(this.last_tag=='a') {
1464 else if(!this.using_fonts) text = text.replace(/^\s+/, '');
1466 if(text.match(/nowiki>/)) {
1470 if(this.format_in_list || (HTMLParserFont && this.list_started ) ) {
1472 if(text.match(/\n{2,}\s{1,}/)) {
1477 if(this.in_td && !text) {
1486 if(geshi) {
1494 if(this.attr && this.attr == 'dwfcknote') {
1495 if(text.match(/fckgL\d+/)) {
1498 if(text.match(/^[\-,:;!_]/)) {
1509 if(this.downloadable_code && (this.export_code || this.code_snippet)) {
1515 if(this.last_tag == 'a' && text.match(/^[\.,;\:\!]/)) {
1519 if(this.in_header) {
1523 if(this.list_started) {
1526 if(!this.code_type) { // keep special character literals outside of code block
1528 if(!results.match(/\[\[\\\\.*?\|$/) && !text.match(/\w:(\\(\w?))+/ ))
1530 if(!text.match(/\\\\[\w\.\-\_]+\\[\w\.\-\_]+/)) {
1537 if(this.in_endnotes && HTMLParserTopNotes.length) {
1539 if(text.match(/\w/) && ! text.match(/^\s*\d\)\s*$/)) {
1542 if(this.bottom_url) {
1543 if(this.link_class && this.link_class == 'media') {
1548 if(HTMLParserBottomNotes[HTMLParserTopNotes[index]]) {
1564 if(text && text.length) {
1570 if(this.list_level && this.list_level > 1) {
1576 if(results.match(regex)) {
1582 if(!HTMLParserOpenAngleBracket) {
1583 if(text.match(/</)) {
1594 if(text.replace) {
1598 if(!text) return;
1600 if(heading) {
1628 if(!v) {
1634 if($FORMAT_SUBST[tag]) return $FORMAT_SUBST[tag];
1643 if(!v) {
1649 if(id == 'test') {
1650 if(!HTMLParser_test_result(results)) return;
1655 if(HTML_InterWiki) {
1658 if(tag_1 == link) return true;
1663 if(iw_replace == 'oIWIKIocIWIKIc') iw_replace = link_text;
1665 …if((iw_replace == 'oIWIKIo'+link_text.replace(/\s/,'%20')+'cIWIKIc') || (iw_replace == link_text)…
1678 if(HTMLParser_FORMAT_SPACE) {
1679 if(HTMLParser_COLSPAN) {
1708 if(HTMLFormatInList) {
1718 if(HTMLLinkInList) {
1727 if(HTMLParser_LBR) {
1733 if(HTMLParser_PRE) {
1735 if(HTMLParser_Geshi) {
1743 if(HTMLParser_TABLE) {
1755 if(HTMLParserOpenAngleBracket) {
1759 if(HTMLParserFont) // HTMLParserFont start
1764 if(v == 1) {
1781 if(v==1)
1786 if(val == null) {
1787 if(ckgdoku_to_dwedit) {
1793 if(val) return val;
1799 if(HTMLParserFontInfix) {
1803 if(fontConflict()) {
1804 if(confirm(LANG.plugins.ckgdoku.font_conflict)) return;
1806 if(!v) {
1822 if(!v) {
1832 if(!v) {
1840 if(HTMLParserTopNotes.length) {
1851 if(!fn.match(/p>\(\(\d+/)) {
1867 if(HTMLParser_MULTI_LINE_PLUGIN) {
1872 if(HTMLParser_NOWIKI) {
1892 if(useComplexTables) {
1893 if(results.indexOf('~~COMPLEX_TABLES~~') == -1) {
1897 if(!useComplexTables) { results = results.replace(/~~COMPLEX_TABLES~~/gm,""); }
1900 if(id == 'test') {
1901 if(HTMLParser_test_result(results)) {
1910 if(id == 'bakup') {
1913 if(id) {
1942 if(getCookie('ckgFbOpt') == 'dokuwiki') {
1972 if( this.form.template && this.form.template.value == 'tpl' ) window.dwfckTextChanged = true;
1973 if(!window.dwfckTextChanged && !JSINFO['cg_rev']) {