Overview
Comment:Fix bug toolbar wiki ou le textarea scrollait vers le haut à l'application d'un tag
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: d65eeee8b8254f3dd8b1c1c40d9906159d5ba446
User & Date: bohwaz on 2012-10-15 02:50:05
Other Links: manifest | tags
Context
2012-10-15
03:11
Fix mise à jour check-in: 6a1adb26dc user: bohwaz tags: trunk
02:50
Fix bug toolbar wiki ou le textarea scrollait vers le haut à l'application d'un tag check-in: d65eeee8b8 user: bohwaz tags: trunk
02:44
Clôture d'exercice et vérification que les opérations sont bien saisies dans l'exercice en cours. check-in: dcfb1107bd user: bohwaz tags: trunk
Changes

Modified www/admin/static/wikitoolbar.js from [9f0e5465e0] to [bdb0e666ea].

66
67
68
69
70
71
72

73
74
75
76

77
78
79
80
81
82
83
				tr.select();
			}
			return this.get(e);
		},

		wrap: function (e, left_str, right_str, sel_offset, sel_length)
		{

			var the_sel_text = this.get(e).text;
			var selection =  this.replace(e, left_str + the_sel_text + right_str );
			if(sel_offset !== undefined && sel_length !== undefined) selection = this.set(e, selection.start +  sel_offset, selection.start +  sel_offset + sel_length);
			else if(the_sel_text == '') selection = this.set(e, selection.start + left_str.length, selection.start + left_str.length);

			return selection;
		}
	};

	function launchToolbar()
	{
		function addBtn(className, label, action)







>




>







66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
				tr.select();
			}
			return this.get(e);
		},

		wrap: function (e, left_str, right_str, sel_offset, sel_length)
		{
			var scroll = e.scrollTop;
			var the_sel_text = this.get(e).text;
			var selection =  this.replace(e, left_str + the_sel_text + right_str );
			if(sel_offset !== undefined && sel_length !== undefined) selection = this.set(e, selection.start +  sel_offset, selection.start +  sel_offset + sel_length);
			else if(the_sel_text == '') selection = this.set(e, selection.start + left_str.length, selection.start + left_str.length);
			e.scrollTop = scroll;
			return selection;
		}
	};

	function launchToolbar()
	{
		function addBtn(className, label, action)