Files
yavsc/web/Scripts/yavsc.js
Paul Schneider 17f57d5542 * yavsc.js: factorize some javascript
* InputCircle.cs: this class is about to be removed

* BlogsController.cs: removes Html used as text

* App.master: removes the bsd css class script

* Circles.aspx: fixes the Javascript circle selection

* Index.aspx:
* AssemblyInfo.aspx: `Indexe` is not a french word, sorry for the
  trouble

* Web.csproj: includes yavsc Javascript in the project

* LocalizedText.Designer.cs: alphabetic order in ressource names

* LocalizedText.resx: * alphabetic order in ressource names

* RegisterModel.cs: disposes a duplicated resource string "UserName"
  (uses now User_name)

* style.css: panels float left
2015-08-22 17:07:41 +02:00

24 lines
498 B
JavaScript

function showHide() {
var id = $(this).attr('did');
var target = $('#'+id);
if (target.hasClass('hidden')) {
target.removeClass('hidden');
if (typeof this.oldhtml == "undefined")
this.oldhtml = $(this).html();
$(this).html('['+this.oldhtml+']');
}
else {
target.addClass('hidden');
$(this).html(this.oldhtml);
}
}
function message(msg) {
if (msg) {
$("#msg").removeClass("hidden");
$("#msg").text(msg);
} else { $("#msg").addClass("hidden"); } }